summaryrefslogtreecommitdiff
path: root/mysql-test/r/renamedb.result
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
commit8e5d57c6cde23bde6800665cea36b63afe1e89aa (patch)
treebec37258ef1c39ae65c60629526a1ace74c597b0 /mysql-test/r/renamedb.result
parent8c03bbaff4f051cd5e80c31820be28b902d7db2c (diff)
downloadmariadb-git-8e5d57c6cde23bde6800665cea36b63afe1e89aa.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/r/renamedb.result')
-rw-r--r--mysql-test/r/renamedb.result4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/r/renamedb.result b/mysql-test/r/renamedb.result
index 26ae42e72aa..b22322fbe8d 100644
--- a/mysql-test/r/renamedb.result
+++ b/mysql-test/r/renamedb.result
@@ -27,3 +27,7 @@ a
2
3
drop database testdb2;
+create database testdb1;
+rename database testdb1 to testdb1;
+ERROR HY000: Can't create database 'testdb1'; database exists
+drop database testdb1;