summaryrefslogtreecommitdiff
path: root/mysql-test/suite/merge/alter_table.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/merge/alter_table.test')
-rw-r--r--mysql-test/suite/merge/alter_table.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/suite/merge/alter_table.test b/mysql-test/suite/merge/alter_table.test
new file mode 100644
index 00000000000..da56772bf60
--- /dev/null
+++ b/mysql-test/suite/merge/alter_table.test
@@ -0,0 +1,12 @@
+--echo #
+--echo # BUG#6236 - ALTER TABLE MODIFY should set implicit NOT NULL on PK columns
+--echo #
+create table t1 ( a varchar(10) not null primary key ) engine=myisam;
+create table t2 ( a varchar(10) not null primary key ) engine=merge union=(t1);
+flush tables;
+alter table t1 modify a varchar(10);
+show create table t2;
+flush tables;
+alter table t1 modify a varchar(10) not null;
+show create table t2;
+drop table if exists t1, t2;