summaryrefslogtreecommitdiff
path: root/mysql-test/t/alter_table.test
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2013-11-11 19:45:55 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2013-11-11 19:45:55 +0400
commit06a91b18d76599cbad2b2bd08464ae47bd8a7e01 (patch)
tree4b206c47829fee32e7aa5bb2853e95097047a495 /mysql-test/t/alter_table.test
parent3cf7e283a6004385b6f2e116b933299d9701fac7 (diff)
downloadmariadb-git-06a91b18d76599cbad2b2bd08464ae47bd8a7e01.tar.gz
MDEV-4436 CHANGE COLUMN IF EXISTS does not work and throws wrong warning.
Use sql_field->change parameter as the name of the field.
Diffstat (limited to 'mysql-test/t/alter_table.test')
-rw-r--r--mysql-test/t/alter_table.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/alter_table.test b/mysql-test/t/alter_table.test
index b0b017f2b70..247a79e2bda 100644
--- a/mysql-test/t/alter_table.test
+++ b/mysql-test/t/alter_table.test
@@ -1643,3 +1643,11 @@ alter table t1 add key (i);
alter table t1 add key if not exists (i);
DROP TABLE t1;
+#
+# MDEV-4436 CHANGE COLUMN IF EXISTS does not work and throws wrong warning.
+#
+create table t1 (a int);
+alter table t1 change column if exists a b bigint;
+show create table t1;
+DROP TABLE t1;
+