summaryrefslogtreecommitdiff
path: root/mysql-test/r/alter_table.result
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/r/alter_table.result
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/r/alter_table.result')
-rw-r--r--mysql-test/r/alter_table.result8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/r/alter_table.result b/mysql-test/r/alter_table.result
index 5a2b48219af..f0539559dc7 100644
--- a/mysql-test/r/alter_table.result
+++ b/mysql-test/r/alter_table.result
@@ -1899,3 +1899,11 @@ alter table t1 add key if not exists (i);
Warnings:
Note 1061 Duplicate key name 'i'
DROP TABLE t1;
+create table t1 (a int);
+alter table t1 change column if exists a b bigint;
+show create table t1;
+Table Create Table
+t1 CREATE TABLE `t1` (
+ `b` bigint(20) DEFAULT NULL
+) ENGINE=MyISAM DEFAULT CHARSET=latin1
+DROP TABLE t1;