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

item_cmpfunc.cc:

  Fix for multibyte charsets
parent 889db1aa
......@@ -1454,7 +1454,11 @@ bool Item_func_like::fix_fields(THD *thd,struct st_table_list *tlist)
{
const char* tmp = first + 1;
for (; *tmp != wild_many && *tmp != wild_one && *tmp != escape; tmp++) ;
#ifdef USE_MB
canDoTurboBM = (tmp == last) && !use_mb(default_charset_info);
#else
canDoTurboBM = tmp == last;
#endif
}
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