diff --git a/mysql-test/r/lowercase_view.result b/mysql-test/r/lowercase_view.result
index 233ca9590b89311c3938e86d6a413845e0adb589..7c5741fe06aea1d7f81eb80818235b89d57ad764 100644
--- a/mysql-test/r/lowercase_view.result
+++ b/mysql-test/r/lowercase_view.result
@@ -7,3 +7,4 @@ show create table VIe;
 Table	Create Table
 vie	CREATE VIEW `mysqltest`.`vie` AS select `mysqltest`.`tab`.`Field` AS `Field` from `mysqltest`.`tab`
 drop database MySQLTest;
+use test;
diff --git a/mysql-test/t/lowercase_view.test b/mysql-test/t/lowercase_view.test
index ed19c2184abd156b3f1f415849ec53c8b12fde86..5b1be072c69e82c651bf5b11949e1e0fbc66d1e0 100644
--- a/mysql-test/t/lowercase_view.test
+++ b/mysql-test/t/lowercase_view.test
@@ -9,3 +9,4 @@ create table TaB (Field int);
 create view ViE as select * from TAb;
 show create table VIe;
 drop database MySQLTest;
+use test;