diff options
author | dlenev@brandersnatch.localdomain <> | 2004-06-22 19:27:16 +0400 |
---|---|---|
committer | dlenev@brandersnatch.localdomain <> | 2004-06-22 19:27:16 +0400 |
commit | eea19e52352e739cda7ea7b137710356809d04ec (patch) | |
tree | d0e1e3af3a439cdd96e7e95fea25e1dc8d02a760 /sql/sql_help.cc | |
parent | 6b45c24d398e23a758917e3d03c9644c17d60bb3 (diff) | |
download | mariadb-git-eea19e52352e739cda7ea7b137710356809d04ec.tar.gz |
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.
Diffstat (limited to 'sql/sql_help.cc')
-rw-r--r-- | sql/sql_help.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); |