Commit 95d4978f authored by unknown's avatar unknown

properly back quoting db.table names in SHOW GRANTS

parent 9127fb60
...@@ -3031,11 +3031,11 @@ int mysql_show_grants(THD *thd,LEX_USER *lex_user) ...@@ -3031,11 +3031,11 @@ int mysql_show_grants(THD *thd,LEX_USER *lex_user)
} }
} }
} }
global.append(" ON ",4); global.append(" ON `",5);
global.append(grant_table->db); global.append(grant_table->db);
global.append(".",1); global.append("`.`",3);
global.append(grant_table->tname); global.append(grant_table->tname);
global.append(" TO '",5); global.append("` TO '",6);
global.append(lex_user->user.str,lex_user->user.length); global.append(lex_user->user.str,lex_user->user.length);
global.append("'@'",3); global.append("'@'",3);
global.append(lex_user->host.str,lex_user->host.length); global.append(lex_user->host.str,lex_user->host.length);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment