summaryrefslogtreecommitdiff
path: root/mysql-test/t/read_only.test
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-03-05 17:11:23 +0100
committerSergei Golubchik <serg@mariadb.org>2015-03-07 13:28:04 +0100
commit6d8b74dd0736d95827fd73c1fa965482f293d911 (patch)
tree4f9fc881088e9c83bf03b6dbcd7b896cf481ae96 /mysql-test/t/read_only.test
parent18feb62feeb833494d003615861b9c78ec008a90 (diff)
downloadmariadb-git-6d8b74dd0736d95827fd73c1fa965482f293d911.tar.gz
add a test for drop trigger under --read-only
Diffstat (limited to 'mysql-test/t/read_only.test')
-rw-r--r--mysql-test/t/read_only.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/t/read_only.test b/mysql-test/t/read_only.test
index 8ea0f2db9b7..d0f397697d5 100644
--- a/mysql-test/t/read_only.test
+++ b/mysql-test/t/read_only.test
@@ -30,6 +30,7 @@ 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);
@@ -56,6 +57,9 @@ create table t3 (a int);
--error ER_OPTION_PREVENTS_STATEMENT
insert into t1 values(1);
+--error ER_OPTION_PREVENTS_STATEMENT
+drop trigger trg1;
+
# if a statement, after parse stage, looks like it will update a
# non-temp table, it will be rejected, even if at execution it would
# have turned out that 0 rows would be updated