summaryrefslogtreecommitdiff
path: root/mysql-test/t/ps.test
diff options
context:
space:
mode:
authorigreenhoe/greenman@anubis.greendragongames.com <>2006-07-13 16:35:25 -0700
committerigreenhoe/greenman@anubis.greendragongames.com <>2006-07-13 16:35:25 -0700
commitabb75129f8318564be9730cb0b909702df9816ef (patch)
treeade4a3fc40348d0802ec1bbd31d554eaa91edfd3 /mysql-test/t/ps.test
parent878107eb4a232cf5097601bec3fa1e8c28d7aca6 (diff)
parentb4c8f536619d594326cdb7b9eade41262670358e (diff)
downloadmariadb-git-abb75129f8318564be9730cb0b909702df9816ef.tar.gz
4.1 -> 5.0 merge
Diffstat (limited to 'mysql-test/t/ps.test')
-rw-r--r--mysql-test/t/ps.test24
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/t/ps.test b/mysql-test/t/ps.test
index ff66b265fae..8eb383de57a 100644
--- a/mysql-test/t/ps.test
+++ b/mysql-test/t/ps.test
@@ -491,6 +491,30 @@ deallocate prepare stmt;
drop table t1, t2;
#
+# Bug#19399 "Stored Procedures 'Lost Connection' when dropping/creating
+# tables"
+# Check that multi-delete tables are also cleaned up before re-execution.
+#
+--disable_warnings
+drop table if exists t1;
+create temporary table if not exists t1 (a1 int);
+--enable_warnings
+# exact delete syntax is essential
+prepare stmt from "delete t1 from t1 where (cast(a1/3 as unsigned) * 3) = a1";
+drop temporary table t1;
+create temporary table if not exists t1 (a1 int);
+# the server crashed on the next statement without the fix
+execute stmt;
+drop temporary table t1;
+create temporary table if not exists t1 (a1 int);
+# the problem was in memory corruption: repeat the test just in case
+execute stmt;
+drop temporary table t1;
+create temporary table if not exists t1 (a1 int);
+execute stmt;
+drop temporary table t1;
+deallocate prepare stmt;
+
# Bug#6102 "Server crash with prepared statement and blank after
# function name"
# ensure that stored functions are cached when preparing a statement