diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-01-13 16:18:37 +0400 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-01-13 16:18:37 +0400 |
commit | 21e2c72bfbdccfdb0f72c6cbb61d7987bb7bb576 (patch) | |
tree | 854328dff31a4fae4be48c5840e2f1c12f609169 /mysql-test/r/alter_table.result | |
parent | 41b3fb05d5e1e732178ba9b05a548f15d17e9eeb (diff) | |
download | mariadb-git-21e2c72bfbdccfdb0f72c6cbb61d7987bb7bb576.tar.gz |
a fix (bug #2361: ALTER TABLE ... DROP PRIMARY KEY drops a non-primary key).
Diffstat (limited to 'mysql-test/r/alter_table.result')
-rw-r--r-- | mysql-test/r/alter_table.result | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/r/alter_table.result b/mysql-test/r/alter_table.result index 7ec12c1b021..33af0b30d1c 100644 --- a/mysql-test/r/alter_table.result +++ b/mysql-test/r/alter_table.result @@ -412,3 +412,12 @@ t1 0 PRIMARY 1 Host A NULL NULL NULL BTREE t1 0 PRIMARY 2 User A 0 NULL NULL BTREE t1 1 Host 1 Host A NULL NULL NULL BTREE disabled DROP TABLE t1; +CREATE TABLE t1 (a int UNIQUE); +ALTER TABLE t1 DROP PRIMARY KEY; +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int(11) default NULL, + UNIQUE KEY `a` (`a`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1 +DROP TABLE t1; |