mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge branch '10.3' into 10.4
This commit is contained in:
@ -9,7 +9,7 @@ create table mysqltest.t (a int) with system versioning;
|
||||
connection user1;
|
||||
show grants;
|
||||
Grants for mysqltest_1@localhost
|
||||
GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
|
||||
GRANT USAGE ON *.* TO `mysqltest_1`@`localhost`
|
||||
delete history from mysqltest.t before system_time now();
|
||||
ERROR 42000: DELETE HISTORY command denied to user 'mysqltest_1'@'localhost' for table 't'
|
||||
connection root;
|
||||
@ -18,16 +18,16 @@ grant delete history on mysqltest.t to mysqltest_1@localhost;
|
||||
connection user1;
|
||||
show grants;
|
||||
Grants for mysqltest_1@localhost
|
||||
GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
|
||||
GRANT DELETE HISTORY ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
|
||||
GRANT DELETE HISTORY ON `mysqltest`.`t` TO 'mysqltest_1'@'localhost'
|
||||
GRANT USAGE ON *.* TO `mysqltest_1`@`localhost`
|
||||
GRANT DELETE HISTORY ON `mysqltest`.* TO `mysqltest_1`@`localhost`
|
||||
GRANT DELETE HISTORY ON `mysqltest`.`t` TO `mysqltest_1`@`localhost`
|
||||
delete history from mysqltest.t before system_time now();
|
||||
connection root;
|
||||
grant all on *.* to mysqltest_1@localhost;
|
||||
show grants for mysqltest_1@localhost;
|
||||
Grants for mysqltest_1@localhost
|
||||
GRANT ALL PRIVILEGES ON *.* TO 'mysqltest_1'@'localhost'
|
||||
GRANT DELETE HISTORY ON `mysqltest`.* TO 'mysqltest_1'@'localhost'
|
||||
GRANT DELETE HISTORY ON `mysqltest`.`t` TO 'mysqltest_1'@'localhost'
|
||||
GRANT ALL PRIVILEGES ON *.* TO `mysqltest_1`@`localhost`
|
||||
GRANT DELETE HISTORY ON `mysqltest`.* TO `mysqltest_1`@`localhost`
|
||||
GRANT DELETE HISTORY ON `mysqltest`.`t` TO `mysqltest_1`@`localhost`
|
||||
drop user mysqltest_1@localhost;
|
||||
drop database mysqltest;
|
||||
|
@ -249,6 +249,8 @@ replace t1 values (1,2),(1,3),(2,4);
|
||||
#
|
||||
# MDEV-14829 Assertion `0' failed in Protocol::end_statement upon concurrent UPDATE
|
||||
#
|
||||
set @old_lock_wait_timeout= @@innodb_lock_wait_timeout;
|
||||
set @@innodb_lock_wait_timeout= 1073741824;
|
||||
create or replace table t1 (pk int, a char(3), b char(3), primary key(pk))
|
||||
engine=innodb with system versioning;
|
||||
insert into t1 (pk) values (1);
|
||||
@ -265,6 +267,7 @@ ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
|
||||
disconnect con1;
|
||||
connection default;
|
||||
drop table t1;
|
||||
set @@innodb_lock_wait_timeout= @old_lock_wait_timeout;
|
||||
#
|
||||
# MDEV-19406 Assertion on updating view of join with versioned table
|
||||
#
|
||||
|
@ -157,6 +157,8 @@ replace t1 values (1,2),(1,3),(2,4);
|
||||
--echo #
|
||||
--echo # MDEV-14829 Assertion `0' failed in Protocol::end_statement upon concurrent UPDATE
|
||||
--echo #
|
||||
set @old_lock_wait_timeout= @@innodb_lock_wait_timeout;
|
||||
set @@innodb_lock_wait_timeout= 1073741824;
|
||||
create or replace table t1 (pk int, a char(3), b char(3), primary key(pk))
|
||||
engine=innodb with system versioning;
|
||||
|
||||
@ -175,6 +177,7 @@ disconnect con1;
|
||||
connection default;
|
||||
reap;
|
||||
drop table t1;
|
||||
set @@innodb_lock_wait_timeout= @old_lock_wait_timeout;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-19406 Assertion on updating view of join with versioned table
|
||||
|
Reference in New Issue
Block a user