refs #5516 fix alter column binary tests

git-svn-id: file:///svn/mysql/tests/mysql-test@48741 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2012-10-08 21:10:00 +00:00
parent fea0b77adf
commit 6f8c8abe8f
5 changed files with 283 additions and 60 deletions

View file

@ -3,13 +3,11 @@ SET SESSION TOKUDB_DISABLE_SLOW_ALTER=ON;
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
CREATE TABLE t (a BINARY(100), b BINARY(200), KEY(a), KEY(b));
ALTER TABLE t CHANGE COLUMN a a BINARY(100);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a BINARY(1);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a BINARY(255);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b b BINARY(200);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b b BINARY(1);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b b BINARY(255);

View file

@ -528,8 +528,15 @@ Warning 1265 Data truncated for column 'a' at row 1
INSERT INTO t VALUES ('people');
Warnings:
Warning 1265 Data truncated for column 'a' at row 1
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(2);
ALTER TABLE ti CHANGE COLUMN b a BINARY(2);
ALTER TABLE t CHANGE COLUMN a b BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b a BINARY(2);
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a b BINARY(3);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(4);
@ -1047,8 +1054,15 @@ Warnings:
Warning 1265 Data truncated for column 'a' at row 1
ALTER TABLE t CHANGE COLUMN a b BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(3);
ALTER TABLE ti CHANGE COLUMN b a BINARY(3);
ALTER TABLE t CHANGE COLUMN a b BINARY(3);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b a BINARY(3);
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a b BINARY(4);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(5);
@ -1566,8 +1580,15 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(3);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(4);
ALTER TABLE ti CHANGE COLUMN b a BINARY(4);
ALTER TABLE t CHANGE COLUMN a b BINARY(4);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b a BINARY(4);
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a b BINARY(5);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(6);
@ -2083,8 +2104,15 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(3);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(4);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(5);
ALTER TABLE ti CHANGE COLUMN b a BINARY(5);
ALTER TABLE t CHANGE COLUMN a b BINARY(5);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b a BINARY(5);
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a b BINARY(6);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(7);
@ -2598,8 +2626,15 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(4);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(5);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(6);
ALTER TABLE ti CHANGE COLUMN b a BINARY(6);
ALTER TABLE t CHANGE COLUMN a b BINARY(6);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b a BINARY(6);
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a b BINARY(7);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(8);
@ -3113,8 +3148,15 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(5);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(6);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(7);
ALTER TABLE ti CHANGE COLUMN b a BINARY(7);
ALTER TABLE t CHANGE COLUMN a b BINARY(7);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b a BINARY(7);
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a b BINARY(8);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(9);
@ -3628,8 +3670,15 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(6);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(7);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(8);
ALTER TABLE ti CHANGE COLUMN b a BINARY(8);
ALTER TABLE t CHANGE COLUMN a b BINARY(8);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b a BINARY(8);
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a b BINARY(9);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(10);
@ -4157,8 +4206,15 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(14);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(15);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(16);
ALTER TABLE ti CHANGE COLUMN b a BINARY(16);
ALTER TABLE t CHANGE COLUMN a b BINARY(16);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b a BINARY(16);
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a b BINARY(17);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(18);
@ -4700,8 +4756,15 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(29);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(30);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(31);
ALTER TABLE ti CHANGE COLUMN b a BINARY(31);
ALTER TABLE t CHANGE COLUMN a b BINARY(31);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b a BINARY(31);
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a b BINARY(32);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(33);
@ -5215,8 +5278,15 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(30);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(31);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(32);
ALTER TABLE ti CHANGE COLUMN b a BINARY(32);
ALTER TABLE t CHANGE COLUMN a b BINARY(32);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b a BINARY(32);
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a b BINARY(33);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(34);
@ -5790,8 +5860,15 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(61);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(62);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(63);
ALTER TABLE ti CHANGE COLUMN b a BINARY(63);
ALTER TABLE t CHANGE COLUMN a b BINARY(63);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b a BINARY(63);
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a b BINARY(64);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(65);
@ -6305,8 +6382,15 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(62);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(63);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(64);
ALTER TABLE ti CHANGE COLUMN b a BINARY(64);
ALTER TABLE t CHANGE COLUMN a b BINARY(64);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b a BINARY(64);
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a b BINARY(65);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(66);
@ -6944,8 +7028,15 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(125);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(126);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(127);
ALTER TABLE ti CHANGE COLUMN b a BINARY(127);
ALTER TABLE t CHANGE COLUMN a b BINARY(127);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b a BINARY(127);
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a b BINARY(128);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(129);
@ -7459,8 +7550,15 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(126);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(127);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(128);
ALTER TABLE ti CHANGE COLUMN b a BINARY(128);
ALTER TABLE t CHANGE COLUMN a b BINARY(128);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b a BINARY(128);
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a b BINARY(129);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(130);
@ -8224,8 +8322,15 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(252);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(253);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(254);
ALTER TABLE ti CHANGE COLUMN b a BINARY(254);
ALTER TABLE t CHANGE COLUMN a b BINARY(254);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b a BINARY(254);
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
ALTER TABLE t CHANGE COLUMN a b BINARY(255);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
@ -8739,6 +8844,13 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(253);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a b BINARY(254);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(255);
ALTER TABLE ti CHANGE COLUMN b a BINARY(255);
ALTER TABLE t CHANGE COLUMN a b BINARY(255);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b a BINARY(255);
include/diff_tables.inc [test.t, test.ti]
DROP TABLE ti;
DROP TABLE t;

View file

@ -9,28 +9,27 @@ SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
CREATE TABLE t (a BINARY(100), b BINARY(200), KEY(a), KEY(b));
# fill_alter_inplace_info bug, handler_flags == ALTER_COLUMN_TYPE + ALTER_COLUMN_DEFAULT, so we fail it
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a BINARY(100);
# no shrinkage and a is part of a key
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a BINARY(1);
# a is part of a key
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a BINARY(255);
# fill_alter_inplace_info bug, handler_flags == ALTER_COLUMN_TYPE + ALTER_COLUMN_DEFAULT, so we fail it
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
# no type change to b
ALTER TABLE t CHANGE COLUMN b b BINARY(200);
# no shrinkage and b is part of a key
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b BINARY(1);
# b is part of a key
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b BINARY(255);
@ -39,10 +38,12 @@ DROP TABLE t;
CREATE TABLE t (a BINARY(1), b BINARY(2), KEY(a,b));
# a is part of a key
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a BINARY(3);
# b is part of a key
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b BINARY(3);

View file

@ -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 1: # 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 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 1: # if i < n:
if i != n: # if i < n:
pass
else:
print "ALTER TABLE t CHANGE COLUMN b a BINARY(%d);" % (i)
@ -26,7 +26,7 @@ def gen_test(n):
print "DROP TABLE t;"
def main():
print "# this test is generated by change_bin_rename.py"
print "# this test is generated by change_char_rename.py"
print "# test char expansion + rename is hot"
print "--disable_warnings"
print "DROP TABLE IF EXISTS t,ti;"

View file

@ -1,4 +1,4 @@
# this test is generated by change_bin_rename.py
# this test is generated by change_char_rename.py
# test char expansion + rename is hot
--disable_warnings
DROP TABLE IF EXISTS t,ti;
@ -776,9 +776,16 @@ CREATE TABLE t (a BINARY(2));
INSERT INTO t VALUES ('hi');
INSERT INTO t VALUES ('there');
INSERT INTO t VALUES ('people');
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(2);
ALTER TABLE ti CHANGE COLUMN b a BINARY(2);
ALTER TABLE t CHANGE COLUMN a b BINARY(2);
ALTER TABLE t CHANGE COLUMN b a BINARY(2);
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 b BINARY(3);
@ -1546,9 +1553,16 @@ INSERT INTO t VALUES ('people');
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(3);
ALTER TABLE ti CHANGE COLUMN b a BINARY(3);
ALTER TABLE t CHANGE COLUMN a b BINARY(3);
ALTER TABLE t CHANGE COLUMN b a BINARY(3);
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 b BINARY(4);
@ -2316,9 +2330,16 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b BINARY(3);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(4);
ALTER TABLE ti CHANGE COLUMN b a BINARY(4);
ALTER TABLE t CHANGE COLUMN a b BINARY(4);
ALTER TABLE t CHANGE COLUMN b a BINARY(4);
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 b BINARY(5);
@ -3086,9 +3107,16 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(3);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b BINARY(4);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(5);
ALTER TABLE ti CHANGE COLUMN b a BINARY(5);
ALTER TABLE t CHANGE COLUMN a b BINARY(5);
ALTER TABLE t CHANGE COLUMN b a BINARY(5);
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 b BINARY(6);
@ -3856,9 +3884,16 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(4);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b BINARY(5);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(6);
ALTER TABLE ti CHANGE COLUMN b a BINARY(6);
ALTER TABLE t CHANGE COLUMN a b BINARY(6);
ALTER TABLE t CHANGE COLUMN b a BINARY(6);
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 b BINARY(7);
@ -4626,9 +4661,16 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(5);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b BINARY(6);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(7);
ALTER TABLE ti CHANGE COLUMN b a BINARY(7);
ALTER TABLE t CHANGE COLUMN a b BINARY(7);
ALTER TABLE t CHANGE COLUMN b a BINARY(7);
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 b BINARY(8);
@ -5396,9 +5438,16 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(6);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b BINARY(7);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(8);
ALTER TABLE ti CHANGE COLUMN b a BINARY(8);
ALTER TABLE t CHANGE COLUMN a b BINARY(8);
ALTER TABLE t CHANGE COLUMN b a BINARY(8);
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 b BINARY(9);
@ -6187,9 +6236,16 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(14);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b BINARY(15);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(16);
ALTER TABLE ti CHANGE COLUMN b a BINARY(16);
ALTER TABLE t CHANGE COLUMN a b BINARY(16);
ALTER TABLE t CHANGE COLUMN b a BINARY(16);
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 b BINARY(17);
@ -6999,9 +7055,16 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(29);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b BINARY(30);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(31);
ALTER TABLE ti CHANGE COLUMN b a BINARY(31);
ALTER TABLE t CHANGE COLUMN a b BINARY(31);
ALTER TABLE t CHANGE COLUMN b a BINARY(31);
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 b BINARY(32);
@ -7769,9 +7832,16 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(30);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b BINARY(31);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(32);
ALTER TABLE ti CHANGE COLUMN b a BINARY(32);
ALTER TABLE t CHANGE COLUMN a b BINARY(32);
ALTER TABLE t CHANGE COLUMN b a BINARY(32);
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 b BINARY(33);
@ -8629,9 +8699,16 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(61);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b BINARY(62);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(63);
ALTER TABLE ti CHANGE COLUMN b a BINARY(63);
ALTER TABLE t CHANGE COLUMN a b BINARY(63);
ALTER TABLE t CHANGE COLUMN b a BINARY(63);
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 b BINARY(64);
@ -9399,9 +9476,16 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(62);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b BINARY(63);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(64);
ALTER TABLE ti CHANGE COLUMN b a BINARY(64);
ALTER TABLE t CHANGE COLUMN a b BINARY(64);
ALTER TABLE t CHANGE COLUMN b a BINARY(64);
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 b BINARY(65);
@ -10355,9 +10439,16 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(125);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b BINARY(126);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(127);
ALTER TABLE ti CHANGE COLUMN b a BINARY(127);
ALTER TABLE t CHANGE COLUMN a b BINARY(127);
ALTER TABLE t CHANGE COLUMN b a BINARY(127);
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 b BINARY(128);
@ -11125,9 +11216,16 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(126);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b BINARY(127);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(128);
ALTER TABLE ti CHANGE COLUMN b a BINARY(128);
ALTER TABLE t CHANGE COLUMN a b BINARY(128);
ALTER TABLE t CHANGE COLUMN b a BINARY(128);
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 b BINARY(129);
@ -12270,9 +12368,16 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(252);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b BINARY(253);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(254);
ALTER TABLE ti CHANGE COLUMN b a BINARY(254);
ALTER TABLE t CHANGE COLUMN a b BINARY(254);
ALTER TABLE t CHANGE COLUMN b a BINARY(254);
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 b BINARY(255);
@ -13040,7 +13145,14 @@ ALTER TABLE t CHANGE COLUMN a b BINARY(253);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a b BINARY(254);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
CREATE TABLE ti LIKE t;
ALTER TABLE ti ENGINE=myisam;
INSERT INTO ti SELECT * FROM t;
ALTER TABLE ti CHANGE COLUMN a b BINARY(255);
ALTER TABLE ti CHANGE COLUMN b a BINARY(255);
ALTER TABLE t CHANGE COLUMN a b BINARY(255);
ALTER TABLE t CHANGE COLUMN b a BINARY(255);
let $diff_tables=test.t, test.ti;
source include/diff_tables.inc;
DROP TABLE ti;
DROP TABLE t;