summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-10-14 15:59:54 +0200
committerSergei Golubchik <serg@mariadb.org>2017-10-17 07:37:39 +0200
commit19a702a85c69d241e360d1d5a040378928a3fdca (patch)
tree5f9e875c542c38e0aa06464bd7631934d3d081b2 /mysql-test/t
parent421716391b8bafe9af853b1ee3f83d521b69db6e (diff)
downloadmariadb-git-19a702a85c69d241e360d1d5a040378928a3fdca.tar.gz
MDEV-14056 DROP TEMPORARY TABLE IF EXISTS causes error 1290 with read_only option
if it's a DROP TABLE, we cannot detect whether a table is temporary by looking in thd->temporary_tables - because the table might simply not exist at all.
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/read_only.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/t/read_only.test b/mysql-test/t/read_only.test
index a0bd7b49273..eb9bea803c2 100644
--- a/mysql-test/t/read_only.test
+++ b/mysql-test/t/read_only.test
@@ -115,6 +115,11 @@ drop table t1;
insert into t1 values(1);
#
+# MDEV-14056 DROP TEMPORARY TABLE IF EXISTS causes error 1290 with read_only option
+#
+drop temporary table if exists t1;
+
+#
# Bug#11733 COMMITs should not happen if read-only is set
#