summaryrefslogtreecommitdiff
path: root/mysql-test/t/tablelock.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/t/tablelock.test')
-rw-r--r--mysql-test/t/tablelock.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/tablelock.test b/mysql-test/t/tablelock.test
index 95533903b45..5ac93f09ac1 100644
--- a/mysql-test/t/tablelock.test
+++ b/mysql-test/t/tablelock.test
@@ -49,3 +49,16 @@ drop table t2,t1;
unlock tables;
# End of 4.1 tests
+
+#
+# Bug#23588 SHOW COLUMNS on a temporary table causes locking issues
+#
+create temporary table t1(f1 int);
+lock tables t1 write;
+insert into t1 values (1);
+show columns from t1;
+insert into t1 values(2);
+drop table t1;
+unlock tables;
+
+# End of 5.0 tests