summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Lenev <Dmitry.Lenev@oracle.com>2012-03-11 16:05:42 +0400
committerDmitry Lenev <Dmitry.Lenev@oracle.com>2012-03-11 16:05:42 +0400
commitc48233c61e6ab3a45f554de4d975f5c91b914822 (patch)
tree71ed1b5fa09c316b0b2b89d07f6d4376ba5fe68d
parentb454f1559672e27e10808b4d012fc7b544516e34 (diff)
downloadmariadb-git-c48233c61e6ab3a45f554de4d975f5c91b914822.tar.gz
Fixed test case for bug #13105873 "valgrind warning:possible
crash in foreign key handling on subsequent create table if not exists". Do not leave current database unassigned after the end of the test case.
-rw-r--r--mysql-test/r/sp-bugs.result1
-rw-r--r--mysql-test/t/sp-bugs.test1
2 files changed, 2 insertions, 0 deletions
diff --git a/mysql-test/r/sp-bugs.result b/mysql-test/r/sp-bugs.result
index 59588768d14..3b4e2855e46 100644
--- a/mysql-test/r/sp-bugs.result
+++ b/mysql-test/r/sp-bugs.result
@@ -128,4 +128,5 @@ CALL p1();
Warnings:
Note 1050 Table 't2' already exists
DROP DATABASE testdb;
+USE test;
End of 5.1 tests
diff --git a/mysql-test/t/sp-bugs.test b/mysql-test/t/sp-bugs.test
index a23ccea8189..2d143b6d86a 100644
--- a/mysql-test/t/sp-bugs.test
+++ b/mysql-test/t/sp-bugs.test
@@ -161,5 +161,6 @@ CALL p1();
--echo # below stmt should not return valgrind warnings
CALL p1();
DROP DATABASE testdb;
+USE test;
--echo End of 5.1 tests