summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <svoj@mysql.com/april.(none)>2007-03-13 18:11:47 +0400
committerunknown <svoj@mysql.com/april.(none)>2007-03-13 18:11:47 +0400
commit968d1695a76f153bfe2007ff63ed1cbeb8b63a59 (patch)
tree63faafb45210085d9f6afc7913c41db4a4d9b22d /myisam
parent063c95e6f07a07a518f9ea8469dbd3e30b3a4a34 (diff)
parent969b71653d434ce1d3447f6c99c331a22ba4f846 (diff)
downloadmariadb-git-968d1695a76f153bfe2007ff63ed1cbeb8b63a59.tar.gz
Merge mysql.com:/home/svoj/devel/mysql/BUG26881/mysql-4.1-engines
into mysql.com:/home/svoj/devel/mysql/BUG26881/mysql-5.0-engines myisam/mi_create.c: Auto merged mysql-test/t/merge.test: Auto merged sql/ha_myisam.cc: Auto merged sql/sql_parse.cc: Use local. mysql-test/r/merge.result: SCCS merged
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_create.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/myisam/mi_create.c b/myisam/mi_create.c
index d46672444e0..ea1d8c7b83e 100644
--- a/myisam/mi_create.c
+++ b/myisam/mi_create.c
@@ -157,6 +157,10 @@ int mi_create(const char *name,uint keys,MI_KEYDEF *keydefs,
rec--;
if (rec->type == (int) FIELD_SKIP_ZERO && rec->length == 1)
{
+ /*
+ NOTE1: here we change a field type FIELD_SKIP_ZERO ->
+ FIELD_NORMAL
+ */
rec->type=(int) FIELD_NORMAL;
packed--;
min_pack_length++;