Commit 2a8837b0 authored by Rich Prohaska's avatar Rich Prohaska

refs #5513 disable column rename from hot column expansion tests on the mainline

git-svn-id: file:///svn/mysql/tests/mysql-test@48104 c7de825b-a66e-492c-adef-691d508d4ae1
parent ae369e2a
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -10,69 +10,31 @@ INSERT INTO t VALUES ( 127 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b TINYINT;
ALTER TABLE t CHANGE COLUMN a b TINYINT;
ALTER TABLE ti CHANGE COLUMN a aa TINYINT;
ALTER TABLE t CHANGE COLUMN a aa TINYINT;
ALTER TABLE t CHANGE COLUMN aa a TINYINT;
ALTER TABLE ti CHANGE COLUMN aa a TINYINT;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
DROP TABLE t;
CREATE TABLE t (a TINYINT);
INSERT INTO t VALUES ( -128 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 127 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b SMALLINT;
ALTER TABLE t CHANGE COLUMN a b SMALLINT;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a TINYINT);
INSERT INTO t VALUES ( -128 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 127 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b MEDIUMINT;
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a TINYINT);
INSERT INTO t VALUES ( -128 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 127 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b INT;
ALTER TABLE t CHANGE COLUMN a b INT;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa INT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a TINYINT);
INSERT INTO t VALUES ( -128 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 127 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT;
ALTER TABLE t CHANGE COLUMN a b BIGINT;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa BIGINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a SMALLINT);
ALTER TABLE t CHANGE COLUMN a b TINYINT;
ALTER TABLE t CHANGE COLUMN a aa TINYINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a SMALLINT);
......@@ -84,59 +46,31 @@ INSERT INTO t VALUES ( 32767 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b SMALLINT;
ALTER TABLE t CHANGE COLUMN a b SMALLINT;
ALTER TABLE ti CHANGE COLUMN a aa SMALLINT;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT;
ALTER TABLE t CHANGE COLUMN aa a SMALLINT;
ALTER TABLE ti CHANGE COLUMN aa a SMALLINT;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
DROP TABLE t;
CREATE TABLE t (a SMALLINT);
INSERT INTO t VALUES ( -32768 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 32767 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b MEDIUMINT;
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a SMALLINT);
INSERT INTO t VALUES ( -32768 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 32767 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b INT;
ALTER TABLE t CHANGE COLUMN a b INT;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa INT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a SMALLINT);
INSERT INTO t VALUES ( -32768 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 32767 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT;
ALTER TABLE t CHANGE COLUMN a b BIGINT;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa BIGINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT);
ALTER TABLE t CHANGE COLUMN a b TINYINT;
ALTER TABLE t CHANGE COLUMN a aa TINYINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT);
ALTER TABLE t CHANGE COLUMN a b SMALLINT;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT);
......@@ -148,49 +82,31 @@ INSERT INTO t VALUES ( 8388607 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b MEDIUMINT;
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT;
ALTER TABLE ti CHANGE COLUMN a aa MEDIUMINT;
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT;
ALTER TABLE t CHANGE COLUMN aa a MEDIUMINT;
ALTER TABLE ti CHANGE COLUMN aa a MEDIUMINT;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT);
INSERT INTO t VALUES ( -8388608 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 8388607 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b INT;
ALTER TABLE t CHANGE COLUMN a b INT;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa INT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT);
INSERT INTO t VALUES ( -8388608 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 8388607 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT;
ALTER TABLE t CHANGE COLUMN a b BIGINT;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa BIGINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a INT);
ALTER TABLE t CHANGE COLUMN a b TINYINT;
ALTER TABLE t CHANGE COLUMN a aa TINYINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a INT);
ALTER TABLE t CHANGE COLUMN a b SMALLINT;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a INT);
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT;
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a INT);
......@@ -201,38 +117,31 @@ INSERT INTO t VALUES ( 2147483647 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b INT;
ALTER TABLE t CHANGE COLUMN a b INT;
ALTER TABLE ti CHANGE COLUMN a aa INT;
ALTER TABLE t CHANGE COLUMN a aa INT;
ALTER TABLE t CHANGE COLUMN aa a INT;
ALTER TABLE ti CHANGE COLUMN aa a INT;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
DROP TABLE t;
CREATE TABLE t (a INT);
INSERT INTO t VALUES ( -2147483648 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 2147483647 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT;
ALTER TABLE t CHANGE COLUMN a b BIGINT;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa BIGINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a BIGINT);
ALTER TABLE t CHANGE COLUMN a b TINYINT;
ALTER TABLE t CHANGE COLUMN a aa TINYINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a BIGINT);
ALTER TABLE t CHANGE COLUMN a b SMALLINT;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a BIGINT);
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT;
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a BIGINT);
ALTER TABLE t CHANGE COLUMN a b INT;
ALTER TABLE t CHANGE COLUMN a aa INT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a BIGINT);
......@@ -243,8 +152,10 @@ INSERT INTO t VALUES ( 9223372036854775807 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT;
ALTER TABLE t CHANGE COLUMN a b BIGINT;
ALTER TABLE ti CHANGE COLUMN a aa BIGINT;
ALTER TABLE t CHANGE COLUMN a aa BIGINT;
ALTER TABLE t CHANGE COLUMN aa a BIGINT;
ALTER TABLE ti CHANGE COLUMN aa a BIGINT;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
DROP TABLE t;
......@@ -255,61 +166,31 @@ INSERT INTO t VALUES ( 255 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b TINYINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b TINYINT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN a aa TINYINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa TINYINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN aa a TINYINT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN aa a TINYINT UNSIGNED;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
DROP TABLE t;
CREATE TABLE t (a TINYINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 255 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b SMALLINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b SMALLINT UNSIGNED;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a TINYINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 255 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b MEDIUMINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT UNSIGNED;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a TINYINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 255 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b INT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b INT UNSIGNED;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa INT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a TINYINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 255 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b BIGINT UNSIGNED;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa BIGINT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a SMALLINT UNSIGNED);
ALTER TABLE t CHANGE COLUMN a b TINYINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa TINYINT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a SMALLINT UNSIGNED);
......@@ -319,53 +200,31 @@ INSERT INTO t VALUES ( 65535 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b SMALLINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b SMALLINT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN a aa SMALLINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN aa a SMALLINT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN aa a SMALLINT UNSIGNED;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
DROP TABLE t;
CREATE TABLE t (a SMALLINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 65535 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b MEDIUMINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT UNSIGNED;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a SMALLINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 65535 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b INT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b INT UNSIGNED;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa INT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a SMALLINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 65535 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b BIGINT UNSIGNED;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa BIGINT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT UNSIGNED);
ALTER TABLE t CHANGE COLUMN a b TINYINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa TINYINT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT UNSIGNED);
ALTER TABLE t CHANGE COLUMN a b SMALLINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT UNSIGNED);
......@@ -375,45 +234,31 @@ INSERT INTO t VALUES ( 16777215 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b MEDIUMINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN a aa MEDIUMINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN aa a MEDIUMINT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN aa a MEDIUMINT UNSIGNED;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 16777215 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b INT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b INT UNSIGNED;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa INT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 16777215 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b BIGINT UNSIGNED;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa BIGINT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a INT UNSIGNED);
ALTER TABLE t CHANGE COLUMN a b TINYINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa TINYINT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a INT UNSIGNED);
ALTER TABLE t CHANGE COLUMN a b SMALLINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a INT UNSIGNED);
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a INT UNSIGNED);
......@@ -423,37 +268,31 @@ INSERT INTO t VALUES ( 4294967295 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b INT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b INT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN a aa INT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa INT UNSIGNED;
ALTER TABLE t CHANGE COLUMN aa a INT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN aa a INT UNSIGNED;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
DROP TABLE t;
CREATE TABLE t (a INT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 4294967295 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b BIGINT UNSIGNED;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a aa BIGINT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a BIGINT UNSIGNED);
ALTER TABLE t CHANGE COLUMN a b TINYINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa TINYINT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a BIGINT UNSIGNED);
ALTER TABLE t CHANGE COLUMN a b SMALLINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a BIGINT UNSIGNED);
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a BIGINT UNSIGNED);
ALTER TABLE t CHANGE COLUMN a b INT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa INT UNSIGNED;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a BIGINT UNSIGNED);
......@@ -463,8 +302,10 @@ INSERT INTO t VALUES ( 18446744073709551615 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b BIGINT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN a aa BIGINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa BIGINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN aa a BIGINT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN aa a BIGINT UNSIGNED;
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
DROP TABLE t;
DROP TABLE IF EXISTS t;
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=ON;
CREATE TABLE t (a VARBINARY(100), b VARBINARY(256)) ENGINE=TokuDB;
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
CREATE TABLE t (a VARBINARY(100), b VARBINARY(256));
ALTER TABLE t CHANGE COLUMN a aa VARBINARY(1);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a aa VARBINARY(255);
ALTER TABLE t CHANGE COLUMN aa a VARBINARY(255);
ALTER TABLE t CHANGE COLUMN a aa VARBINARY(256);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a aa VARBINARY(100);
ALTER TABLE t CHANGE COLUMN b bb VARBINARY(255);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b bb VARBINARY(1024);
ALTER TABLE t CHANGE COLUMN bb b VARBINARY(1024);
ALTER TABLE t CHANGE COLUMN b bb VARBINARY(256);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b bb VARBINARY(256);
DROP TABLE t;
DROP TABLE IF EXISTS t;
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=ON;
CREATE TABLE t (a VARCHAR(100), b VARCHAR(256)) ENGINE=TokuDB;
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
CREATE TABLE t (a VARCHAR(100), b VARCHAR(256));
ALTER TABLE t CHANGE COLUMN a aa VARCHAR(1);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a aa VARCHAR(255);
ALTER TABLE t CHANGE COLUMN aa a VARCHAR(255);
ALTER TABLE t CHANGE COLUMN a aa VARCHAR(256);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a aa VARCHAR(100);
ALTER TABLE t CHANGE COLUMN b bb VARCHAR(255);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b bb VARCHAR(1024);
ALTER TABLE t CHANGE COLUMN bb b VARCHAR(1024);
ALTER TABLE t CHANGE COLUMN b bb VARCHAR(256);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b bb VARCHAR(256);
DROP TABLE t;
......@@ -8,8 +8,12 @@ default: $(T)
%.test: %.py
python $< >$@
change_all.test: change_all.py
change_all.test: change_all.py change_all_1000_10.test change_all_1000_1.test change_all_10000_1.test
true
change_all_1000_10.test: change_all.py
python change_all.py --experiments=1000 --nrows=10 >change_all_1000_10.test
change_all_1000_1.test: change_all.py
python change_all.py --experiments=1000 --nrows=1 >change_all_1000_1.test
change_all_10000_1.test: change_all.py
python change_all.py --experiments=10000 --nrows=1 >change_all_10000_1.test
......@@ -6,7 +6,7 @@ def gen_test(n):
for v in [ 'hi', 'there', 'people' ]:
print "INSERT INTO t VALUES ('%s');" % (v)
for i in range(2,256):
if i < n:
if 1: # if i < n:
print "--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/"
print "--error ER_UNSUPPORTED_EXTENSION"
else:
......@@ -16,7 +16,7 @@ def gen_test(n):
print "ALTER TABLE ti CHANGE COLUMN a b BINARY(%d);" % (i)
print "ALTER TABLE ti CHANGE COLUMN b a BINARY(%d);" % (i)
print "ALTER TABLE t CHANGE COLUMN a b BINARY(%d);" % (i)
if i < n:
if 1: # if i < n:
pass
else:
print "ALTER TABLE t CHANGE COLUMN b a BINARY(%d);" % (i)
......@@ -27,7 +27,7 @@ def gen_test(n):
def main():
print "# this test is generated by change_bin_rename.py"
print "# test that binary expansion + rename is hot"
print "# test char expansion + rename is hot"
print "--disable_warnings"
print "DROP TABLE IF EXISTS t,ti;"
print "--enable_warnings"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -6,7 +6,7 @@ def gen_test(n):
for v in [ 'hi', 'there', 'people' ]:
print "INSERT INTO t VALUES ('%s');" % (v)
for i in range(2,256):
if i < n:
if i != n: # if i < n:
print "--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/"
print "--error ER_UNSUPPORTED_EXTENSION"
else:
......@@ -16,7 +16,7 @@ def gen_test(n):
print "ALTER TABLE ti CHANGE COLUMN a b CHAR(%d);" % (i)
print "ALTER TABLE ti CHANGE COLUMN b a CHAR(%d);" % (i)
print "ALTER TABLE t CHANGE COLUMN a b CHAR(%d);" % (i)
if i < n:
if i != n: # if i < n:
pass
else:
print "ALTER TABLE t CHANGE COLUMN b a CHAR(%d);" % (i)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
#!/usr/bin/env python
import sys
def gen_test(types, values):
for a in range(len(types)):
for b in range(len(types)):
print
print "CREATE TABLE t (a %s);" % (types[a])
if a != b: # a > b:
print "--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/"
print "--error ER_UNSUPPORTED_EXTENSION"
else:
for x in values[a]:
print "INSERT INTO t VALUES (", x, ");"
print "CREATE TABLE ti LIKE t;"
print "ALTER TABLE ti ENGINE=myisam;"
print "INSERT INTO ti SELECT * from t;"
print "ALTER TABLE ti CHANGE COLUMN a aa %s;" % (types[b])
print "ALTER TABLE t CHANGE COLUMN a aa %s;" % (types[b])
if a != b: # a > b:
pass
else:
print "ALTER TABLE t CHANGE COLUMN aa a %s;" % (types[b])
print "ALTER TABLE ti CHANGE COLUMN aa a %s;" % (types[b])
print "let $diff_tables = test.t, test.ti;"
print "source include/diff_tables.inc;"
print "DROP TABLE ti;"
print "DROP TABLE t;"
def main():
print "# this test is generated by change_int_rename.py"
print "--disable_warnings"
print "DROP TABLE IF EXISTS t, ti;"
print "--enable_warnings"
print "SET SESSION DEFAULT_STORAGE_ENGINE=\"TokuDB\";"
print "SET SESSION TOKUDB_DISABLE_SLOW_ALTER=1;"
gen_test(
[ "TINYINT", "SMALLINT", "MEDIUMINT", "INT", "BIGINT" ],
[ [ -128, -1, 0, 1, 127 ], [ -32768, -1, 0, 1, 32767], [-8388608, -1, 0, 1, 8388607], [-2147483648, 0, 1, 2147483647], [-9223372036854775808, 0, 1, 9223372036854775807] ]
)
gen_test(
[ "TINYINT UNSIGNED", "SMALLINT UNSIGNED", "MEDIUMINT UNSIGNED", "INT UNSIGNED", "BIGINT UNSIGNED" ],
[ [ 0, 1, 255 ], [ 0, 1, 65535], [0, 1, 16777215], [0, 1, 4294967295], [0, 1, 18446744073709551615] ]
)
return 0
sys.exit(main())
# this test is generated by change_int.py
# this test is generated by change_int_rename.py
--disable_warnings
DROP TABLE IF EXISTS t, ti;
--enable_warnings
......@@ -14,81 +14,43 @@ INSERT INTO t VALUES ( 127 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b TINYINT;
ALTER TABLE t CHANGE COLUMN a b TINYINT;
ALTER TABLE ti CHANGE COLUMN a aa TINYINT;
ALTER TABLE t CHANGE COLUMN a aa TINYINT;
ALTER TABLE t CHANGE COLUMN aa a TINYINT;
ALTER TABLE ti CHANGE COLUMN aa a TINYINT;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
DROP TABLE t;
CREATE TABLE t (a TINYINT);
INSERT INTO t VALUES ( -128 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 127 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b SMALLINT;
ALTER TABLE t CHANGE COLUMN a b SMALLINT;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa SMALLINT;
DROP TABLE t;
CREATE TABLE t (a TINYINT);
INSERT INTO t VALUES ( -128 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 127 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b MEDIUMINT;
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT;
DROP TABLE t;
CREATE TABLE t (a TINYINT);
INSERT INTO t VALUES ( -128 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 127 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b INT;
ALTER TABLE t CHANGE COLUMN a b INT;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa INT;
DROP TABLE t;
CREATE TABLE t (a TINYINT);
INSERT INTO t VALUES ( -128 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 127 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT;
ALTER TABLE t CHANGE COLUMN a b BIGINT;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa BIGINT;
DROP TABLE t;
CREATE TABLE t (a SMALLINT);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b TINYINT;
ALTER TABLE t CHANGE COLUMN a aa TINYINT;
DROP TABLE t;
CREATE TABLE t (a SMALLINT);
......@@ -100,71 +62,43 @@ INSERT INTO t VALUES ( 32767 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b SMALLINT;
ALTER TABLE t CHANGE COLUMN a b SMALLINT;
ALTER TABLE ti CHANGE COLUMN a aa SMALLINT;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT;
ALTER TABLE t CHANGE COLUMN aa a SMALLINT;
ALTER TABLE ti CHANGE COLUMN aa a SMALLINT;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
DROP TABLE t;
CREATE TABLE t (a SMALLINT);
INSERT INTO t VALUES ( -32768 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 32767 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b MEDIUMINT;
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT;
DROP TABLE t;
CREATE TABLE t (a SMALLINT);
INSERT INTO t VALUES ( -32768 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 32767 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b INT;
ALTER TABLE t CHANGE COLUMN a b INT;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa INT;
DROP TABLE t;
CREATE TABLE t (a SMALLINT);
INSERT INTO t VALUES ( -32768 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 32767 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT;
ALTER TABLE t CHANGE COLUMN a b BIGINT;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa BIGINT;
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b TINYINT;
ALTER TABLE t CHANGE COLUMN a aa TINYINT;
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b SMALLINT;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT;
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT);
......@@ -176,61 +110,43 @@ INSERT INTO t VALUES ( 8388607 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b MEDIUMINT;
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT;
ALTER TABLE ti CHANGE COLUMN a aa MEDIUMINT;
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT;
ALTER TABLE t CHANGE COLUMN aa a MEDIUMINT;
ALTER TABLE ti CHANGE COLUMN aa a MEDIUMINT;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT);
INSERT INTO t VALUES ( -8388608 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 8388607 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b INT;
ALTER TABLE t CHANGE COLUMN a b INT;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa INT;
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT);
INSERT INTO t VALUES ( -8388608 );
INSERT INTO t VALUES ( -1 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 8388607 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT;
ALTER TABLE t CHANGE COLUMN a b BIGINT;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa BIGINT;
DROP TABLE t;
CREATE TABLE t (a INT);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b TINYINT;
ALTER TABLE t CHANGE COLUMN a aa TINYINT;
DROP TABLE t;
CREATE TABLE t (a INT);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b SMALLINT;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT;
DROP TABLE t;
CREATE TABLE t (a INT);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT;
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT;
DROP TABLE t;
CREATE TABLE t (a INT);
......@@ -241,50 +157,43 @@ INSERT INTO t VALUES ( 2147483647 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b INT;
ALTER TABLE t CHANGE COLUMN a b INT;
ALTER TABLE ti CHANGE COLUMN a aa INT;
ALTER TABLE t CHANGE COLUMN a aa INT;
ALTER TABLE t CHANGE COLUMN aa a INT;
ALTER TABLE ti CHANGE COLUMN aa a INT;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
DROP TABLE t;
CREATE TABLE t (a INT);
INSERT INTO t VALUES ( -2147483648 );
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 2147483647 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT;
ALTER TABLE t CHANGE COLUMN a b BIGINT;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa BIGINT;
DROP TABLE t;
CREATE TABLE t (a BIGINT);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b TINYINT;
ALTER TABLE t CHANGE COLUMN a aa TINYINT;
DROP TABLE t;
CREATE TABLE t (a BIGINT);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b SMALLINT;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT;
DROP TABLE t;
CREATE TABLE t (a BIGINT);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT;
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT;
DROP TABLE t;
CREATE TABLE t (a BIGINT);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b INT;
ALTER TABLE t CHANGE COLUMN a aa INT;
DROP TABLE t;
CREATE TABLE t (a BIGINT);
......@@ -295,8 +204,10 @@ INSERT INTO t VALUES ( 9223372036854775807 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT;
ALTER TABLE t CHANGE COLUMN a b BIGINT;
ALTER TABLE ti CHANGE COLUMN a aa BIGINT;
ALTER TABLE t CHANGE COLUMN a aa BIGINT;
ALTER TABLE t CHANGE COLUMN aa a BIGINT;
ALTER TABLE ti CHANGE COLUMN aa a BIGINT;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
......@@ -309,73 +220,43 @@ INSERT INTO t VALUES ( 255 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b TINYINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b TINYINT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN a aa TINYINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa TINYINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN aa a TINYINT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN aa a TINYINT UNSIGNED;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
DROP TABLE t;
CREATE TABLE t (a TINYINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 255 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b SMALLINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b SMALLINT UNSIGNED;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa SMALLINT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a TINYINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 255 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b MEDIUMINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT UNSIGNED;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a TINYINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 255 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b INT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b INT UNSIGNED;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa INT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a TINYINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 255 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b BIGINT UNSIGNED;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa BIGINT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a SMALLINT UNSIGNED);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b TINYINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa TINYINT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a SMALLINT UNSIGNED);
......@@ -385,65 +266,43 @@ INSERT INTO t VALUES ( 65535 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b SMALLINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b SMALLINT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN a aa SMALLINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN aa a SMALLINT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN aa a SMALLINT UNSIGNED;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
DROP TABLE t;
CREATE TABLE t (a SMALLINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 65535 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b MEDIUMINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT UNSIGNED;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a SMALLINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 65535 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b INT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b INT UNSIGNED;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa INT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a SMALLINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 65535 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b BIGINT UNSIGNED;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa BIGINT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT UNSIGNED);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b TINYINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa TINYINT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT UNSIGNED);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b SMALLINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT UNSIGNED);
......@@ -453,57 +312,43 @@ INSERT INTO t VALUES ( 16777215 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b MEDIUMINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN a aa MEDIUMINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN aa a MEDIUMINT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN aa a MEDIUMINT UNSIGNED;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 16777215 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b INT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b INT UNSIGNED;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa INT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a MEDIUMINT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 16777215 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b BIGINT UNSIGNED;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa BIGINT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a INT UNSIGNED);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b TINYINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa TINYINT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a INT UNSIGNED);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b SMALLINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a INT UNSIGNED);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a INT UNSIGNED);
......@@ -513,49 +358,43 @@ INSERT INTO t VALUES ( 4294967295 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b INT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b INT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN a aa INT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa INT UNSIGNED;
ALTER TABLE t CHANGE COLUMN aa a INT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN aa a INT UNSIGNED;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
DROP TABLE t;
CREATE TABLE t (a INT UNSIGNED);
INSERT INTO t VALUES ( 0 );
INSERT INTO t VALUES ( 1 );
INSERT INTO t VALUES ( 4294967295 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b BIGINT UNSIGNED;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa BIGINT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a BIGINT UNSIGNED);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b TINYINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa TINYINT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a BIGINT UNSIGNED);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b SMALLINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa SMALLINT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a BIGINT UNSIGNED);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b MEDIUMINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa MEDIUMINT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a BIGINT UNSIGNED);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b INT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa INT UNSIGNED;
DROP TABLE t;
CREATE TABLE t (a BIGINT UNSIGNED);
......@@ -565,8 +404,10 @@ INSERT INTO t VALUES ( 18446744073709551615 );
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * from t;
ALTER TABLE ti CHANGE COLUMN a b BIGINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a b BIGINT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN a aa BIGINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN a aa BIGINT UNSIGNED;
ALTER TABLE t CHANGE COLUMN aa a BIGINT UNSIGNED;
ALTER TABLE ti CHANGE COLUMN aa a BIGINT UNSIGNED;
let $diff_tables = test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
......
......@@ -5,34 +5,34 @@ DROP TABLE IF EXISTS t;
--enable_warnings
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=ON;
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
CREATE TABLE t (a VARBINARY(100), b VARBINARY(256)) ENGINE=TokuDB;
CREATE TABLE t (a VARBINARY(100), b VARBINARY(256));
# varbinary shrink with column rename is not supported
# varchar shrink with column rename is not supported
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa VARBINARY(1);
# varbinary expand with column rename is supported
ALTER TABLE t CHANGE COLUMN a aa VARBINARY(255);
# varchar expand with column rename is not supported
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa VARBINARY(256);
# varbinary column rename is supported
ALTER TABLE t CHANGE COLUMN aa a VARBINARY(255);
# varchar column rename is supported
ALTER TABLE t CHANGE COLUMN a aa VARBINARY(100);
# varbinary shrink woth column rename is not supported
# varchar shrink woth column rename is not supported
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b bb VARBINARY(255);
# varbinary expand with column rename is supported
ALTER TABLE t CHANGE COLUMN b bb VARBINARY(1024);
# varbinary column rename is supported
ALTER TABLE t CHANGE COLUMN bb b VARBINARY(1024);
# varbinary shrink with column rename is not supported
# varchar expand with column rename is not supported
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b bb VARBINARY(1024);
# varchar column rename is supported
ALTER TABLE t CHANGE COLUMN b bb VARBINARY(256);
DROP TABLE t;
\ No newline at end of file
......@@ -5,34 +5,34 @@ DROP TABLE IF EXISTS t;
--enable_warnings
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=ON;
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
CREATE TABLE t (a VARCHAR(100), b VARCHAR(256)) ENGINE=TokuDB;
CREATE TABLE t (a VARCHAR(100), b VARCHAR(256));
# varchar shrink with column rename is not supported
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa VARCHAR(1);
# varchar expand with column rename is supported
ALTER TABLE t CHANGE COLUMN a aa VARCHAR(255);
# varchar expand with column rename is not supported
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a aa VARCHAR(256);
# varchar column rename is supported
ALTER TABLE t CHANGE COLUMN aa a VARCHAR(255);
ALTER TABLE t CHANGE COLUMN a aa VARCHAR(100);
# varchar shrink woth column rename is not supported
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b bb VARCHAR(255);
# varchar expand with column rename is supported
# varchar expand with column rename is not supported
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b bb VARCHAR(1024);
# varchar column rename is supported
ALTER TABLE t CHANGE COLUMN bb b VARCHAR(1024);
# varchar shrink with column rename is not supported
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b bb VARCHAR(256);
DROP TABLE t;
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment