1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

s/TRUNCATE ... TO/DELETE HISTORY FROM ... BEFORE/

This commit is contained in:
Sergei Golubchik
2017-12-16 21:33:43 +01:00
committed by Aleksey Midenkov
parent ee68d019d1
commit 617e108fb6
7 changed files with 59 additions and 49 deletions

View File

@ -23,7 +23,7 @@ create table mysqltest.t (a int) with system versioning;
connection user1;
show grants;
--error ER_TABLEACCESS_DENIED_ERROR
truncate mysqltest.t to system_time now();
delete history from mysqltest.t before system_time now();
connection root;
grant delete history on mysqltest.* to mysqltest_1@localhost;
@ -31,7 +31,7 @@ grant delete history on mysqltest.t to mysqltest_1@localhost;
connection user1;
show grants;
truncate mysqltest.t to system_time now();
delete history from mysqltest.t before system_time now();
connection root;
grant all on *.* to mysqltest_1@localhost;