From 91e27b0266cf654efc364450b0d504b4b32f6a93 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 23 Jun 2004 11:40:42 +0400 Subject: Fix and test case for BUG#3899 mysql-test/r/alter_table.result: Test case for BUG#3899 mysql-test/t/alter_table.test: Test case for BUG#3899 sql/sql_yacc.yy: Fix for BUG#3899: call ALTER_INFO::reset to clear ALTER_INFO::drop_list and ALTER_INFO::alter_list --- mysql-test/t/alter_table.test | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mysql-test/t/alter_table.test') diff --git a/mysql-test/t/alter_table.test b/mysql-test/t/alter_table.test index 32654bb0bc4..122dcaa6c49 100644 --- a/mysql-test/t/alter_table.test +++ b/mysql-test/t/alter_table.test @@ -304,3 +304,11 @@ SHOW CREATE TABLE t1; --error 1091 ALTER TABLE t1 DROP PRIMARY KEY; DROP TABLE t1; + +# BUG#3899 +create table t1 (a int, b int, key(a)); +insert into t1 values (1,1), (2,2); +--error 1091 +alter table t1 drop key no_such_key; +alter table t1 drop key a; +drop table t1; -- cgit v1.2.1