diff options
author | unknown <igor@rurik.mysql.com> | 2005-06-07 06:38:05 -0700 |
---|---|---|
committer | unknown <igor@rurik.mysql.com> | 2005-06-07 06:38:05 -0700 |
commit | 3145787db91432deaaf51437855c06e7b26e8fe2 (patch) | |
tree | 874410a623b21d2d3f837cc2e0e3c566f7a425be /myisam/mi_key.c | |
parent | e5a97df6631a3ae9f2cc96eeeb4854593e3a79d4 (diff) | |
parent | d499ead64c468cab0fb03b98568e01bfd971f7b3 (diff) | |
download | mariadb-git-3145787db91432deaaf51437855c06e7b26e8fe2.tar.gz |
Merge rurik.mysql.com:/home/igor/dev/mysql-4.1-0
into rurik.mysql.com:/home/igor/dev/mysql-5.0-0
BitKeeper/etc/ignore:
auto-union
BitKeeper/etc/logging_ok:
auto-union
myisam/mi_key.c:
Auto merged
mysql-test/r/ctype_utf8.result:
Auto merged
mysql-test/r/ps_1general.result:
Auto merged
mysql-test/r/ps_2myisam.result:
Auto merged
mysql-test/r/ps_3innodb.result:
Auto merged
mysql-test/r/ps_4heap.result:
Auto merged
mysql-test/r/ps_5merge.result:
Auto merged
sql/item_buff.cc:
Auto merged
sql/sql_class.cc:
Auto merged
Diffstat (limited to 'myisam/mi_key.c')
-rw-r--r-- | myisam/mi_key.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/myisam/mi_key.c b/myisam/mi_key.c index 9fb673483ea..eec1d710045 100644 --- a/myisam/mi_key.c +++ b/myisam/mi_key.c @@ -107,7 +107,8 @@ uint _mi_make_key(register MI_INFO *info, uint keynr, uchar *key, } if (keyseg->flag & HA_SPACE_PACK) { - end=pos+length; + FIX_LENGTH(cs, pos, length, char_length); + end= pos + char_length; if (type != HA_KEYTYPE_NUM) { while (end > pos && end[-1] == ' ') @@ -118,8 +119,7 @@ uint _mi_make_key(register MI_INFO *info, uint keynr, uchar *key, while (pos < end && pos[0] == ' ') pos++; } - length=(uint) (end-pos); - FIX_LENGTH(cs, pos, length, char_length); + char_length= (uint) (end - pos); store_key_length_inc(key,char_length); memcpy((byte*) key,(byte*) pos,(size_t) char_length); key+=char_length; |