summaryrefslogtreecommitdiff
path: root/sql/unireg.cc
diff options
context:
space:
mode:
authorbar@gw.udmsearch.izhnet.ru <>2002-06-19 21:21:30 +0500
committerbar@gw.udmsearch.izhnet.ru <>2002-06-19 21:21:30 +0500
commit6f5f47855acc0e421596dd287217f95685b1ec8b (patch)
tree619a1993ab7447b02bc4d786f456740d2805cf67 /sql/unireg.cc
parentf4f4962d4d64b9b8013aa982778db13ad5934d89 (diff)
downloadmariadb-git-6f5f47855acc0e421596dd287217f95685b1ec8b.tar.gz
Default table character set has been added:
CREATE TABLE a (field,...) TYPE=type CHARSET=cset;
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r--sql/unireg.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc
index 863f71d1cce..f2d8d6532a9 100644
--- a/sql/unireg.cc
+++ b/sql/unireg.cc
@@ -459,8 +459,7 @@ static bool pack_fields(File file,List<create_field> &create_fields)
int2store(buff+8,field->unireg_check);
buff[10]= (uchar) field->interval_id;
buff[11]= (uchar) field->sql_type;
- buff[12]= (uchar) (field->charset ? field->charset->number :
- default_charset_info->number);
+ buff[12]= (uchar) field->charset->number;
int2store(buff+13, field->comment.length);
comment_length+= field->comment.length;
set_if_bigger(int_count,field->interval_id);