diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-03-05 17:11:23 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-03-07 13:28:04 +0100 |
commit | 6d8b74dd0736d95827fd73c1fa965482f293d911 (patch) | |
tree | 4f9fc881088e9c83bf03b6dbcd7b896cf481ae96 /mysql-test/r/read_only.result | |
parent | 18feb62feeb833494d003615861b9c78ec008a90 (diff) | |
download | mariadb-git-6d8b74dd0736d95827fd73c1fa965482f293d911.tar.gz |
add a test for drop trigger under --read-only
Diffstat (limited to 'mysql-test/r/read_only.result')
-rw-r--r-- | mysql-test/r/read_only.result | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/r/read_only.result b/mysql-test/r/read_only.result index c9c569137b2..ae92d39a916 100644 --- a/mysql-test/r/read_only.result +++ b/mysql-test/r/read_only.result @@ -6,6 +6,7 @@ connection default; set global read_only=0; connection con1; create table t1 (a int); +create trigger trg1 before insert on t1 for each row set @a:=1; insert into t1 values(1); create table t2 select * from t1; connection default; @@ -20,6 +21,8 @@ create table t3 (a int); ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement insert into t1 values(1); ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement +drop trigger trg1; +ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement update t1 set a=1 where 1=0; ERROR HY000: The MariaDB server is running with the --read-only option so it cannot execute this statement update t1,t2 set t1.a=t2.a+1 where t1.a=t2.a; |