MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Alexey Botchkov Date:May 31 2010 1:46pm
Subject:bzr commit into mysql-trunk-bugfixing branch (holyfoot:3086) Bug#45052
View as plain text  
#At file:///home/hf/work/45052/ based on revid:alik@stripped

 3086 Alexey Botchkov	2010-05-31
      test added for the bug #45052

    modified:
      mysql-test/r/alter_table.result
      mysql-test/t/alter_table.test
=== modified file 'mysql-test/r/alter_table.result'
--- a/mysql-test/r/alter_table.result	2010-02-20 10:07:32 +0000
+++ b/mysql-test/r/alter_table.result	2010-05-31 13:33:38 +0000
@@ -1366,3 +1366,7 @@ ERROR HY000: Incorrect prefix key; the u
 CREATE INDEX i2 ON t1 (a(20));
 ERROR HY000: Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys
 DROP TABLE t1;
+CREATE TABLE t1 (id int);
+INSERT INTO t1 VALUES (1), (2);
+ALTER TABLE t1 ADD COLUMN (f1 INT), ADD COLUMN (f2 INT), ADD KEY f2k(f2);
+DROP TABLE t1;

=== modified file 'mysql-test/t/alter_table.test'
--- a/mysql-test/t/alter_table.test	2010-02-11 17:02:41 +0000
+++ b/mysql-test/t/alter_table.test	2010-05-31 13:33:38 +0000
@@ -1117,3 +1117,14 @@ CREATE INDEX i2 ON t1 (a(20));
 # cleanup
 DROP TABLE t1;
 
+
+#
+# Bug #45052    ALTER TABLE ADD COLUMN crashes server with multiple foreign key columns
+#   The alter table fails if 2 or more new fields added and
+#   also added a key with these fields
+#
+CREATE TABLE t1 (id int);
+INSERT INTO t1 VALUES (1), (2);
+ALTER TABLE t1 ADD COLUMN (f1 INT), ADD COLUMN (f2 INT), ADD KEY f2k(f2);
+DROP TABLE t1;
+


Attachment: [text/bzr-bundle] bzr/holyfoot@mysql.com-20100531133338-t8n824cmashca5xw.bundle
Thread
bzr commit into mysql-trunk-bugfixing branch (holyfoot:3086) Bug#45052Alexey Botchkov1 Jun