summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2003-08-12 16:42:52 +0500
committerunknown <bar@bar.mysql.r18.ru>2003-08-12 16:42:52 +0500
commit2338e2eaf9392ece5faea1f19147d4402590314d (patch)
tree117030028f954681de7ca7e02d98352a54512e88 /sql/item_cmpfunc.cc
parent253b2a9654f6430d879076771b70bd018dd30732 (diff)
downloadmariadb-git-2338e2eaf9392ece5faea1f19147d4402590314d.tar.gz
LIKE didn't work with non-default charset
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r--sql/item_cmpfunc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index 7d8da16338b..642be5491aa 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -2139,7 +2139,7 @@ bool Item_func_like::turboBM_matches(const char* text, int text_len) const
int shift = pattern_len;
int j = 0;
int u = 0;
- CHARSET_INFO *cs=system_charset_info; // QQ Needs to be fixed
+ CHARSET_INFO *cs= cmp.cmp_collation.collation; // QQ Needs to be fixed
const int plm1= pattern_len - 1;
const int tlmpl= text_len - pattern_len;