1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

missing grant check added

This commit is contained in:
serg@serg.mysql.com
2003-03-07 11:55:07 +01:00
parent 95af195d11
commit b755a87fb1

View File

@@ -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