mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
HANDLER priv check fixed
This commit is contained in:
parent
4302bfdb7d
commit
36aae14f1a
1 changed files with 4 additions and 2 deletions
|
@ -2476,8 +2476,10 @@ mysql_execute_command(void)
|
|||
res = mysql_ha_close(thd, tables);
|
||||
break;
|
||||
case SQLCOM_HA_READ:
|
||||
if (check_db_used(thd,tables) ||
|
||||
check_table_access(thd,SELECT_ACL, tables))
|
||||
/* there is no need to check for table permissions here, because
|
||||
if a user has no permissions to read a table, he won't be
|
||||
able to open it (with SQLCOM_HA_OPEN) in the first place. */
|
||||
if (check_db_used(thd,tables))
|
||||
goto error;
|
||||
res = mysql_ha_read(thd, tables, lex->ha_read_mode, lex->backup_dir,
|
||||
lex->insert_list, lex->ha_rkey_mode, select_lex->where,
|
||||
|
|
Loading…
Reference in a new issue