item_cmpfunc.cc:

Turbo() is not used anymore for multibyte charsets.
This commit is contained in:
bar@bar.mysql.r18.ru 2003-04-22 12:01:28 +05:00
parent 5610c4dea6
commit 292f7954bd

View File

@ -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)