Commit 63552e50 authored by Rich Prohaska's avatar Rich Prohaska

refs #5333 add more column expansion tests

git-svn-id: file:///svn/mysql/tests/mysql-test@47677 c7de825b-a66e-492c-adef-691d508d4ae1
parent 6ca9cc12
DROP TABLE IF EXISTS t;
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=ON;
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
CREATE TABLE t (a CHAR(100) NOT NULL DEFAULT '', b BINARY(200) NOT NULL DEFAULT '');
SHOW CREATE TABLE t;
Table Create Table
t CREATE TABLE `t` (
`a` char(100) NOT NULL DEFAULT '',
`b` binary(200) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0'
) ENGINE=TokuDB DEFAULT CHARSET=latin1
ALTER TABLE t CHANGE COLUMN a a CHAR(101) NOT NULL DEFAULT 'a';
SHOW CREATE TABLE t;
Table Create Table
t CREATE TABLE `t` (
`a` char(101) NOT NULL DEFAULT 'a',
`b` binary(200) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0'
) ENGINE=TokuDB DEFAULT CHARSET=latin1
ALTER TABLE t CHANGE COLUMN b b BINARY(201) NOT NULL DEFAULT 'b';
SHOW CREATE TABLE t;
Table Create Table
t CREATE TABLE `t` (
`a` char(101) NOT NULL DEFAULT 'a',
`b` binary(201) NOT NULL DEFAULT 'b\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0'
) ENGINE=TokuDB DEFAULT CHARSET=latin1
DROP TABLE t;
DROP TABLE IF EXISTS t;
SET SESSION DEFAULT_STORAGE_ENGINE="TokuDB";
CREATE TABLE t (a CHAR(10), b CHAR(10));
INSERT INTO t VALUES ('hi', 'there');
INSERT INTO t VALUES ('you', 'people');
SELECT * FROM t;
a b
hi there
you people
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=1;
ALTER TABLE t CHANGE COLUMN a a CHAR(20), CHANGE COLUMN b b CHAR(30);
SELECT * FROM t;
a b
hi there
you people
DROP TABLE t;
DROP TABLE IF EXISTS t;
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=ON;
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
CREATE TABLE t (a CHAR(100), b BINARY(100));
ALTER TABLE t CHANGE COLUMN a a CHAR(1) NOT NULL;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a CHAR(100) NOT NULL;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a CHAR(200) NOT NULL;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b b BINARY(1) NOT NULL;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b b BINARY(100) NOT NULL;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b b BINARY(200) NOT NULL;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
CREATE TABLE t (a CHAR(100) NOT NULL, b CHAR(100) NOT NULL);
ALTER TABLE t CHANGE COLUMN a a CHAR(1);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a CHAR(100);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a CHAR(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(100);
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
DROP TABLE t;
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.
DROP TABLE IF EXISTS t;
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=1;
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
CREATE TABLE t (a VARCHAR(1),b VARBINARY(1),c INT,d CHAR(1),e BINARY(1));
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN c c BIGINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN d d CHAR(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN e e BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN d d CHAR(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN e e BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN c c BIGINT,CHANGE COLUMN e e BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN d d CHAR(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN e e BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN e e BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN e e BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN e e BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
DROP TABLE t;
# test that char expansion + default change works
--disable_warnings
DROP TABLE IF EXISTS t;
--enable_warnings
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=ON;
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
CREATE TABLE t (a CHAR(100) NOT NULL DEFAULT '', b BINARY(200) NOT NULL DEFAULT '');
SHOW CREATE TABLE t;
ALTER TABLE t CHANGE COLUMN a a CHAR(101) NOT NULL DEFAULT 'a';
SHOW CREATE TABLE t;
ALTER TABLE t CHANGE COLUMN b b BINARY(201) NOT NULL DEFAULT 'b';
SHOW CREATE TABLE t;
DROP TABLE t;
\ No newline at end of file
--disable_warnings
DROP TABLE IF EXISTS t;
--enable_warnings
SET SESSION DEFAULT_STORAGE_ENGINE="TokuDB";
CREATE TABLE t (a CHAR(10), b CHAR(10));
INSERT INTO t VALUES ('hi', 'there');
INSERT INTO t VALUES ('you', 'people');
SELECT * FROM t;
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=1;
ALTER TABLE t CHANGE COLUMN a a CHAR(20), CHANGE COLUMN b b CHAR(30);
SELECT * FROM t;
DROP TABLE t;
# test that char(X) to char(Y) not null is not supported (different type)
--disable_warnings
DROP TABLE IF EXISTS t;
--enable_warnings
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=ON;
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
# nullable -> not null not supported
CREATE TABLE t (a CHAR(100), b BINARY(100));
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a CHAR(1) NOT NULL;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a CHAR(100) NOT NULL;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a CHAR(200) NOT NULL;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b BINARY(1) NOT NULL;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b BINARY(100) NOT NULL;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b BINARY(200) NOT NULL;
DROP TABLE t;
# not null -> nullable not supported
CREATE TABLE t (a CHAR(100) NOT NULL, b CHAR(100) NOT NULL);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a CHAR(1);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a CHAR(100);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a CHAR(200);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b BINARY(1);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b BINARY(100);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b BINARY(200);
DROP TABLE t;
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.
import sys
import itertools
cols = [ 'a', 'b', 'c', 'd', 'e' ]
old_types = [ 'VARCHAR(1)', 'VARBINARY(1)', 'INT', 'CHAR(1)', 'BINARY(1)' ]
new_types = [ 'VARCHAR(2)', 'VARBINARY(2)', 'BIGINT', 'CHAR(2)', 'BINARY(2)' ]
def main():
print "# this test generated by change_multiple.py"
print "# this test generated multiple column changes which should all fail since we support only one at a time"
print "--disable_warnings"
print "DROP TABLE IF EXISTS t;"
print "--enable_warnings"
print "SET SESSION TOKUDB_DISABLE_SLOW_ALTER=1;"
print "SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';"
create_cmd = "CREATE TABLE t ("
for i in range(len(cols)):
create_cmd += "%s %s" % (cols[i], old_types[i])
if i < len(cols)-1:
create_cmd += ","
print "%s);" % (create_cmd)
for t in gen_comb(range(5)):
alter_cmd = gen_alter(t)
print "--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/"
print "--error ER_UNSUPPORTED_EXTENSION"
print "%s;" % (alter_cmd)
print "DROP TABLE t;"
return 0
def gen_alter(t):
alter = "ALTER TABLE t "
for c in range(len(t)):
i = t[c]
alter += "CHANGE COLUMN %s %s %s" % (cols[i], cols[i], new_types[i])
if c < len(t)-1:
alter += ","
return alter
def gen_comb(l):
r = []
for i in range(2,len(l)):
r += collapse(itertools.combinations(l, i))
return r
def collapse(i):
r = []
for x in i:
r += [x]
return r
def new_type(i):
if i <= 0:
return "VARCHAR(2)"
if i <= 1:
return "VARBINARY(2)"
if i <= 2:
return "BIGINT"
if i <= 3:
return "CHAR(2)"
return "BINARY(2)"
sys.exit(main())
# this test generated by change_multiple.py
# this test generated multiple column changes which should all fail since we support only one at a time
--disable_warnings
DROP TABLE IF EXISTS t;
--enable_warnings
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=1;
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
CREATE TABLE t (a VARCHAR(1),b VARBINARY(1),c INT,d CHAR(1),e BINARY(1));
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN c c BIGINT;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN d d CHAR(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN d d CHAR(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN c c BIGINT,CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN d d CHAR(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
DROP TABLE t;
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