From 292f7954bd636b34245a79f4054f4a6d6140f544 Mon Sep 17 00:00:00 2001 From: "bar@bar.mysql.r18.ru" <> Date: Tue, 22 Apr 2003 12:01:28 +0500 Subject: [PATCH] item_cmpfunc.cc: Turbo() is not used anymore for multibyte charsets. --- sql/item_cmpfunc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index 09f0aeefb09..ac2d0b4f847 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -1870,7 +1870,7 @@ bool Item_func_like::fix_fields(THD *thd, TABLE_LIST *tlist, Item ** ref) { const char* tmp = first + 1; for (; *tmp != wild_many && *tmp != wild_one && *tmp != escape; tmp++) ; - canDoTurboBM = tmp == last; + canDoTurboBM = (tmp == last) && !use_mb(args[0]->charset()); } if (canDoTurboBM)