mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
BUG#11754075: BUG#45621: A FEW TEST FILES ARE DISABLED DUE TO WL#4284
Backporting the patch from BUG#11753506 into mysql-5.5 as it is already in mysql-trunk but not in mysql-5.5.
This commit is contained in:
@@ -27,15 +27,26 @@ a
|
||||
2001
|
||||
set global read_only=0;
|
||||
BEGIN;
|
||||
BEGIN;
|
||||
select @@read_only;
|
||||
@@read_only
|
||||
0
|
||||
set global read_only=1;
|
||||
*** On SUPER USER connection ***
|
||||
insert into t1 values(1002);
|
||||
insert into t2 values(2002);
|
||||
BEGIN;
|
||||
*** On regular USER connection ***
|
||||
insert into t1 values(1003);
|
||||
insert into t2 values(2003);
|
||||
set global read_only=1;
|
||||
COMMIT;
|
||||
COMMIT;
|
||||
ERROR HY000: The MySQL server is running with the --read-only option so it cannot execute this statement
|
||||
insert into t2 values(2003);
|
||||
ERROR HY000: The MySQL server is running with the --read-only option so it cannot execute this statement
|
||||
*** SUPER USER COMMIT (must succeed) ***
|
||||
COMMIT;
|
||||
*** regular USER COMMIT (must succeed - nothing to commit) ***
|
||||
COMMIT;
|
||||
select @@read_only;
|
||||
@@read_only
|
||||
1
|
||||
set global read_only=0;
|
||||
insert into t1 values(1004);
|
||||
insert into t2 values(2004);
|
||||
@@ -48,7 +59,6 @@ select * from t2;
|
||||
a
|
||||
2001
|
||||
2002
|
||||
2003
|
||||
2004
|
||||
select * from t1;
|
||||
a
|
||||
@@ -59,7 +69,6 @@ select * from t2;
|
||||
a
|
||||
2001
|
||||
2002
|
||||
2003
|
||||
2004
|
||||
set global read_only=1;
|
||||
select @@read_only;
|
||||
@@ -87,7 +96,6 @@ select * from t2;
|
||||
a
|
||||
2001
|
||||
2002
|
||||
2003
|
||||
2004
|
||||
2005
|
||||
select * from t1;
|
||||
@@ -100,7 +108,6 @@ select * from t2;
|
||||
a
|
||||
2001
|
||||
2002
|
||||
2003
|
||||
2004
|
||||
2005
|
||||
insert into t1 values(1006);
|
||||
|
Reference in New Issue
Block a user