Commit b755a87f authored by serg@serg.mysql.com's avatar serg@serg.mysql.com

missing grant check added

parent 95af195d
......@@ -1957,6 +1957,8 @@ mysql_execute_command(void)
case SQLCOM_TRUNCATE:
if (check_access(thd,DELETE_ACL,tables->db,&tables->grant.privilege))
goto error; /* purecov: inspected */
if (grant_option && check_grant(thd,DELETE_ACL,tables))
goto error;
/*
Don't allow this within a transaction because we want to use
re-generate table
......
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