Commit 292f7954 authored by bar@bar.mysql.r18.ru's avatar bar@bar.mysql.r18.ru

item_cmpfunc.cc:

  Turbo() is not used anymore for multibyte charsets.
parent 5610c4de
...@@ -1870,7 +1870,7 @@ bool Item_func_like::fix_fields(THD *thd, TABLE_LIST *tlist, Item ** ref) ...@@ -1870,7 +1870,7 @@ bool Item_func_like::fix_fields(THD *thd, TABLE_LIST *tlist, Item ** ref)
{ {
const char* tmp = first + 1; const char* tmp = first + 1;
for (; *tmp != wild_many && *tmp != wild_one && *tmp != escape; tmp++) ; for (; *tmp != wild_many && *tmp != wild_one && *tmp != escape; tmp++) ;
canDoTurboBM = tmp == last; canDoTurboBM = (tmp == last) && !use_mb(args[0]->charset());
} }
if (canDoTurboBM) if (canDoTurboBM)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment