From eea19e52352e739cda7ea7b137710356809d04ec Mon Sep 17 00:00:00 2001 From: "dlenev@brandersnatch.localdomain" <> Date: Tue, 22 Jun 2004 19:27:16 +0400 Subject: Fix for Bug# 4200 "Parse error on LIKE ESCAPE with parameter binding" Now ESCAPE in LIKE will accept not only string literal but constant delimited expression. --- sql/sql_help.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_help.cc') diff --git a/sql/sql_help.cc b/sql/sql_help.cc index 44293b8214f..c5a49cab3b5 100644 --- a/sql/sql_help.cc +++ b/sql/sql_help.cc @@ -626,7 +626,7 @@ SQL_SELECT *prepare_select_for_name(THD *thd, const char *mask, uint mlen, { Item *cond= new Item_func_like(new Item_field(pfname), new Item_string(mask,mlen,pfname->charset()), - (char*) "\\"); + new Item_string("\\",1,&my_charset_latin1)); if (thd->is_fatal_error) return 0; // OOM return prepare_simple_select(thd,cond,tables,table,error); -- cgit v1.2.1