summaryrefslogtreecommitdiff
path: root/mysql-test/r/derived.result
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2013-09-12 17:05:29 +0300
committerunknown <sanja@askmonty.org>2013-09-12 17:05:29 +0300
commit1a01e3b959102402de1547fb2c7b912269032882 (patch)
tree851353bd1fa398cb98e82afe30c4578f17838c1f /mysql-test/r/derived.result
parent7e4845beea1a86dc53dc67908a2779ea2f0190a2 (diff)
downloadmariadb-git-1a01e3b959102402de1547fb2c7b912269032882.tar.gz
MDEV-5005: Subquery in Procedure somehow affecting temporary table
Removed unneeded set of TABLE_LIST::skip_temporary flag.
Diffstat (limited to 'mysql-test/r/derived.result')
-rw-r--r--mysql-test/r/derived.result23
1 files changed, 23 insertions, 0 deletions
diff --git a/mysql-test/r/derived.result b/mysql-test/r/derived.result
index a9247ff41bf..1042ee79e8c 100644
--- a/mysql-test/r/derived.result
+++ b/mysql-test/r/derived.result
@@ -416,4 +416,27 @@ MIN(i)
1
DROP TABLE t1;
# End of 5.0 tests
+#
+# MDEV-5005: Subquery in Procedure somehow affecting temporary table
+#
+create temporary table if not exists t1 (id int not null);
+select A.* from ( select tt.* from t1 tt ) A;
+id
+prepare stmt from "select A.* from ( select tt.* from t1 tt ) A ";
+execute stmt;
+id
+deallocate prepare stmt;
+drop temporary table t1;
+CREATE PROCEDURE p ()
+BEGIN
+select A.* from ( select tt.* from t1 tt ) A ;
+END |
+create temporary table if not exists t1 (id int not null);
+CALL p();
+id
+CALL p();
+id
+drop procedure p;
+drop temporary table t1;
+# End of 5.3 tests
set optimizer_switch=@save_derived_optimizer_switch;