mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
properly back quoting db.table names in SHOW GRANTS
This commit is contained in:
parent
9127fb60d6
commit
95d4978ff6
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue