From c48233c61e6ab3a45f554de4d975f5c91b914822 Mon Sep 17 00:00:00 2001 From: Dmitry Lenev Date: Sun, 11 Mar 2012 16:05:42 +0400 Subject: [PATCH] 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. --- mysql-test/r/sp-bugs.result | 1 + mysql-test/t/sp-bugs.test | 1 + 2 files changed, 2 insertions(+) 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