1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +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

@ -7551,7 +7551,7 @@ bool mysql_show_grants(THD *thd, LEX_USER *lex_user)
}
DBUG_ASSERT(rolename || username);
Item_string *field=new Item_string("",0,&my_charset_latin1);
Item_string *field=new Item_string_ascii("", 0);
List<Item> field_list;
field->name=buff;
field->max_length=1024;