summaryrefslogtreecommitdiff
path: root/sql/key.cc
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2002-12-20 17:14:46 +0400
committerunknown <bar@bar.mysql.r18.ru>2002-12-20 17:14:46 +0400
commit54abb8e922dcdb0834e29f7de76ec849f258e06c (patch)
tree32f5ef505dc3713cbcfdf84d6a2b51f0f3bc020f /sql/key.cc
parentf6d3338a9115fdbd8fb9d504adf0e505fa22ae8a (diff)
downloadmariadb-git-54abb8e922dcdb0834e29f7de76ec849f258e06c.tar.gz
less default_charset_info
Diffstat (limited to 'sql/key.cc')
-rw-r--r--sql/key.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/key.cc b/sql/key.cc
index 84669808b92..875a89a146f 100644
--- a/sql/key.cc
+++ b/sql/key.cc
@@ -192,8 +192,7 @@ int key_cmp(TABLE *table,const byte *key,uint idx,uint key_length)
if (!(key_part->key_type & (FIELDFLAG_NUMBER+FIELDFLAG_BINARY+
FIELDFLAG_PACK)))
{
- /* BAR TODO: I'm not sure this should be system_charset_info */
- if (my_strnncoll(system_charset_info,
+ if (my_strnncoll(key_part->field->charset(),
(const uchar*) key, length,
(const uchar*) table->record[0]+key_part->offset,length))
return 1;