1
# should work with embedded server after mysqltest is fixed
2
-- source include/not_embedded.inc
3
-- source include/have_innodb.inc
6
# BUG#11733: COMMITs should not happen if read-only is set
10
DROP TABLE IF EXISTS table_11733 ;
13
# READ_ONLY does nothing to SUPER users
14
# so we use a non-SUPER one:
16
grant CREATE, SELECT, DROP on *.* to test@localhost;
18
connect (con1,localhost,test,,test);
21
set global read_only=0;
23
# Any transactional engine will do
24
create table table_11733 (a int) engine=InnoDb;
28
insert into table_11733 values(11733);
31
set global read_only=1;
34
select @@global.read_only;
35
select * from table_11733 ;
36
-- error ER_OPTION_PREVENTS_STATEMENT
40
set global read_only=0;
41
drop table table_11733 ;
42
drop user test@localhost;