summaryrefslogtreecommitdiff
path: root/mysql-test/t/alter_table.test
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2004-02-06 15:23:41 +0300
committerunknown <konstantin@mysql.com>2004-02-06 15:23:41 +0300
commit5db2d195a653d913b4b0adf741df79151ca2a5a6 (patch)
tree7230fe81c62fa6a2bc488216ab3775d11795f3a5 /mysql-test/t/alter_table.test
parent15b89bfc5981ad348220fbf3f7067b7465d71080 (diff)
parentb5819094a70fa1c4f9c231424af6792da0b7b801 (diff)
downloadmariadb-git-5db2d195a653d913b4b0adf741df79151ca2a5a6.tar.gz
merge 3.23 -> 4.0, 2003/02/06
BitKeeper/etc/ignore: auto-union BitKeeper/etc/logging_ok: auto-union mysql-test/r/func_math.result: Auto merged mysql-test/t/func_math.test: Auto merged sql/item_func.cc: Auto merged
Diffstat (limited to 'mysql-test/t/alter_table.test')
-rw-r--r--mysql-test/t/alter_table.test17
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/t/alter_table.test b/mysql-test/t/alter_table.test
index d438f2d5825..1937cdbe985 100644
--- a/mysql-test/t/alter_table.test
+++ b/mysql-test/t/alter_table.test
@@ -204,3 +204,20 @@ LOCK TABLES t1 WRITE;
ALTER TABLE t1 DISABLE KEYS;
SHOW INDEX FROM t1;
DROP TABLE t1;
+#
+# Bug #2628: 'alter table t1 rename mysqltest.t1' silently drops mysqltest.t1
+# if it exists
+#
+create table t1 (name char(15));
+insert into t1 (name) values ("current");
+create database mysqltest;
+create table mysqltest.t1 (name char(15));
+insert into mysqltest.t1 (name) values ("mysqltest");
+select * from t1;
+select * from mysqltest.t1;
+--error 1050
+alter table t1 rename mysqltest.t1;
+select * from t1;
+select * from mysqltest.t1;
+drop table t1;
+drop database mysqltest;