1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +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

@ -60,8 +60,8 @@ CREATE TABLE t2(user_str TEXT);
--echo
--echo ---> connection: default
GRANT INSERT, DELETE ON mysqltest_db1.t1 TO mysqltest_dfn@localhost;
GRANT INSERT, DELETE ON mysqltest_db1.t2 TO mysqltest_dfn@localhost;
GRANT INSERT, DROP ON mysqltest_db1.t1 TO mysqltest_dfn@localhost;
GRANT INSERT, DROP ON mysqltest_db1.t2 TO mysqltest_dfn@localhost;
#
# Check that the user must have TRIGGER privilege to create a trigger.