1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Adding Item_string_sys and Item_string_ascii to reduce duplicate code

This commit is contained in:
Alexander Barkov
2014-09-03 18:24:31 +04:00
parent e42f4e3199
commit 1e66871713
6 changed files with 57 additions and 50 deletions

View File

@ -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()),
new Item_string("\\",1,&my_charset_latin1),
new Item_string_ascii("\\"),
FALSE);
if (thd->is_fatal_error)
return 0; // OOM