1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Bug #23556: TRUNCATE TABLE still maps to DELETE

- TRUNCATE requires DROP privilege, not DELETE
This commit is contained in:
gkodinov/kgeorge@macbook.gmz
2006-11-21 10:25:10 +02:00
parent 989117071a
commit 06dd1244c3
5 changed files with 60 additions and 5 deletions

View File

@ -3508,7 +3508,7 @@ end_with_restore_list:
break;
}
DBUG_ASSERT(first_table == all_tables && first_table != 0);
if (check_one_table_access(thd, DELETE_ACL, all_tables))
if (check_one_table_access(thd, DROP_ACL, all_tables))
goto error;
/*
Don't allow this within a transaction because we want to use