summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2005-06-06 16:55:06 +0500
committerunknown <bar@mysql.com>2005-06-06 16:55:06 +0500
commit22eeea04903dc0275387fd26cd7bd9cdc8f40f50 (patch)
tree762faa009b1e7f88fce2ac9652638811207f852c /myisam
parente0ae1fa061dce2f22670148bda83eb9e91d05501 (diff)
parente7300f13465e8e218351f61a4bef6b8133ed79b4 (diff)
downloadmariadb-git-22eeea04903dc0275387fd26cd7bd9cdc8f40f50.tar.gz
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/usr/home/bar/mysql-5.0.turk
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_test1.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/myisam/mi_test1.c b/myisam/mi_test1.c
index aa6cd98ac8e..5727c699469 100644
--- a/myisam/mi_test1.c
+++ b/myisam/mi_test1.c
@@ -471,20 +471,25 @@ static void update_record(char *record)
ptr=blob_key;
memcpy_fixed(pos+4,&ptr,sizeof(char*)); /* Store pointer to new key */
if (keyinfo[0].seg[0].type != HA_KEYTYPE_NUM)
- my_casedn(default_charset_info,blob_key,length);
+ default_charset_info->cset->casedn(default_charset_info,
+ blob_key, length, blob_key, length);
pos+=recinfo[1].length;
}
else if (recinfo[1].type == FIELD_VARCHAR)
{
uint pack_length= HA_VARCHAR_PACKLENGTH(recinfo[1].length-1);
uint length= pack_length == 1 ? (uint) *(uchar*) pos : uint2korr(pos);
- my_casedn(default_charset_info,pos+pack_length,length);
+ default_charset_info->cset->casedn(default_charset_info,
+ pos + pack_length, length,
+ pos + pack_length, length);
pos+=recinfo[1].length;
}
else
{
if (keyinfo[0].seg[0].type != HA_KEYTYPE_NUM)
- my_casedn(default_charset_info,pos,keyinfo[0].seg[0].length);
+ default_charset_info->cset->casedn(default_charset_info,
+ pos, keyinfo[0].seg[0].length,
+ pos, keyinfo[0].seg[0].length);
pos+=recinfo[1].length;
}