properly back quoting db.table names in SHOW GRANTS

parent 45080daf
......@@ -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(".",1);
global.append("`.`",3);
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("'@'",3);
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