summaryrefslogtreecommitdiff
path: root/mysql-test/t/renamedb.test
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2006-05-18 12:21:13 +0500
committerunknown <bar@mysql.com>2006-05-18 12:21:13 +0500
commit9c686c8a68af12b3a491dc8049b7ddc50db8010e (patch)
treebec37258ef1c39ae65c60629526a1ace74c597b0 /mysql-test/t/renamedb.test
parentde0e4a9a8fe58ff025554d6fe3db1641b3c9ffe4 (diff)
downloadmariadb-git-9c686c8a68af12b3a491dc8049b7ddc50db8010e.tar.gz
Bug#19392 Rename Database: Crash if case change
Problem: Renaming a database to itself crashed server. It hapenned because of wrong DBUG_ASSERT. Fix: removing wrong DBUG_ASSERT. Now it reports a correct error message "database alreadt exists". mysql-test/r/renamedb.result: Adding test case mysql-test/t/renamedb.test: Adding test case sql/sql_db.cc: DBUG_ASSERT crashed server when renaming a database to itself.
Diffstat (limited to 'mysql-test/t/renamedb.test')
-rw-r--r--mysql-test/t/renamedb.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/renamedb.test b/mysql-test/t/renamedb.test
index 5cfb2ce0c12..1e71adb3bf3 100644
--- a/mysql-test/t/renamedb.test
+++ b/mysql-test/t/renamedb.test
@@ -16,3 +16,11 @@ select database();
show tables;
select a from t1 order by a;
drop database testdb2;
+
+#
+# Bug#19392 Rename Database: Crash if case change
+#
+create database testdb1;
+--error 1007
+rename database testdb1 to testdb1;
+drop database testdb1;