diff options
author | unknown <ram@gw.mysql.r18.ru> | 2005-01-14 18:24:32 +0400 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2005-01-14 18:24:32 +0400 |
commit | 8c3a1fde1de1338ae4f6e24172351a320f89cba2 (patch) | |
tree | 701b1fc471f48a8b254049d77ac0f0e42fdc3671 /sql/ha_myisam.cc | |
parent | 60ff25cac86cdbfffe1b5dcddb95b46f221202a2 (diff) | |
download | mariadb-git-8c3a1fde1de1338ae4f6e24172351a320f89cba2.tar.gz |
A fix for bit type.
pack_length_in_rec() func has been introduced.
sql/field.h:
A fix for bit type.
As from now the pack_length_in_rec() function is used for MyISAM
record length calculation instead of the pack_length().
For bit field it doesn't count uneven bits.
sql/ha_myisam.cc:
A fix for bit type.
As from now the pack_length_in_rec() function is used for MyISAM
record length calculation instead of the pack_length().
For bit field it doesn't count uneven bits.
Diffstat (limited to 'sql/ha_myisam.cc')
-rw-r--r-- | sql/ha_myisam.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_myisam.cc b/sql/ha_myisam.cc index 87329c6f4af..9631b78bca3 100644 --- a/sql/ha_myisam.cc +++ b/sql/ha_myisam.cc @@ -1467,7 +1467,7 @@ int ha_myisam::create(const char *name, register TABLE *table_arg, fieldpos <= minpos) { /* skip null fields */ - if (!(temp_length= (*field)->pack_length())) + if (!(temp_length= (*field)->pack_length_in_rec())) continue; /* Skip null-fields */ if (! found || fieldpos < minpos || (fieldpos == minpos && temp_length < length)) |