2012-09-10 22:18:49 +00:00
|
|
|
DROP TABLE IF EXISTS t, ti;
|
2012-09-07 12:09:49 +00:00
|
|
|
SET SESSION DEFAULT_STORAGE_ENGINE="TokuDB";
|
|
|
|
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=1;
|
|
|
|
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 );
|
2012-09-10 22:18:49 +00:00
|
|
|
CREATE TABLE ti LIKE t;
|
|
|
|
ALTER TABLE ti ENGINE=myisam;
|
|
|
|
INSERT INTO ti SELECT * from t;
|
2012-09-11 12:12:33 +00:00
|
|
|
ALTER TABLE ti CHANGE COLUMN a a TINYINT;
|
2012-09-07 12:09:49 +00:00
|
|
|
ALTER TABLE t CHANGE COLUMN a a TINYINT;
|
2012-09-10 22:18:49 +00:00
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
2012-09-07 12:09:49 +00:00
|
|
|
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 );
|
2012-09-10 22:18:49 +00:00
|
|
|
CREATE TABLE ti LIKE t;
|
|
|
|
ALTER TABLE ti ENGINE=myisam;
|
|
|
|
INSERT INTO ti SELECT * from t;
|
2012-09-11 12:12:33 +00:00
|
|
|
ALTER TABLE ti CHANGE COLUMN a a SMALLINT;
|
2012-09-07 12:09:49 +00:00
|
|
|
ALTER TABLE t CHANGE COLUMN a a SMALLINT;
|
2012-09-10 22:18:49 +00:00
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
2012-09-07 12:09:49 +00:00
|
|
|
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 );
|
2012-09-10 22:18:49 +00:00
|
|
|
CREATE TABLE ti LIKE t;
|
|
|
|
ALTER TABLE ti ENGINE=myisam;
|
|
|
|
INSERT INTO ti SELECT * from t;
|
2012-09-11 12:12:33 +00:00
|
|
|
ALTER TABLE ti CHANGE COLUMN a a MEDIUMINT;
|
2012-09-07 12:09:49 +00:00
|
|
|
ALTER TABLE t CHANGE COLUMN a a MEDIUMINT;
|
2012-09-10 22:18:49 +00:00
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
2012-09-07 12:09:49 +00:00
|
|
|
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 );
|
2012-09-10 22:18:49 +00:00
|
|
|
CREATE TABLE ti LIKE t;
|
|
|
|
ALTER TABLE ti ENGINE=myisam;
|
|
|
|
INSERT INTO ti SELECT * from t;
|
2012-09-11 12:12:33 +00:00
|
|
|
ALTER TABLE ti CHANGE COLUMN a a INT;
|
2012-09-07 12:09:49 +00:00
|
|
|
ALTER TABLE t CHANGE COLUMN a a INT;
|
2012-09-10 22:18:49 +00:00
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
2012-09-07 12:09:49 +00:00
|
|
|
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 );
|
2012-09-10 22:18:49 +00:00
|
|
|
CREATE TABLE ti LIKE t;
|
|
|
|
ALTER TABLE ti ENGINE=myisam;
|
|
|
|
INSERT INTO ti SELECT * from t;
|
2012-09-11 12:12:33 +00:00
|
|
|
ALTER TABLE ti CHANGE COLUMN a a BIGINT;
|
2012-09-07 12:09:49 +00:00
|
|
|
ALTER TABLE t CHANGE COLUMN a a BIGINT;
|
2012-09-10 22:18:49 +00:00
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
2012-09-07 12:09:49 +00:00
|
|
|
DROP TABLE t;
|
|
|
|
CREATE TABLE t (a SMALLINT);
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a TINYINT;
|
|
|
|
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 );
|
2012-09-10 22:18:49 +00:00
|
|
|
CREATE TABLE ti LIKE t;
|
|
|
|
ALTER TABLE ti ENGINE=myisam;
|
|
|
|
INSERT INTO ti SELECT * from t;
|
2012-09-11 12:12:33 +00:00
|
|
|
ALTER TABLE ti CHANGE COLUMN a a SMALLINT;
|
2012-09-07 12:09:49 +00:00
|
|
|
ALTER TABLE t CHANGE COLUMN a a SMALLINT;
|
2012-09-10 22:18:49 +00:00
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
2012-09-07 12:09:49 +00:00
|
|
|
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 );
|
2012-09-10 22:18:49 +00:00
|
|
|
CREATE TABLE ti LIKE t;
|
|
|
|
ALTER TABLE ti ENGINE=myisam;
|
|
|
|
INSERT INTO ti SELECT * from t;
|
2012-09-11 12:12:33 +00:00
|
|
|
ALTER TABLE ti CHANGE COLUMN a a MEDIUMINT;
|
2012-09-07 12:09:49 +00:00
|
|
|
ALTER TABLE t CHANGE COLUMN a a MEDIUMINT;
|
2012-09-10 22:18:49 +00:00
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
2012-09-07 12:09:49 +00:00
|
|
|
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 );
|
2012-09-10 22:18:49 +00:00
|
|
|
CREATE TABLE ti LIKE t;
|
|
|
|
ALTER TABLE ti ENGINE=myisam;
|
|
|
|
INSERT INTO ti SELECT * from t;
|
2012-09-11 12:12:33 +00:00
|
|
|
ALTER TABLE ti CHANGE COLUMN a a INT;
|
2012-09-07 12:09:49 +00:00
|
|
|
ALTER TABLE t CHANGE COLUMN a a INT;
|
2012-09-10 22:18:49 +00:00
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
2012-09-07 12:09:49 +00:00
|
|
|
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 );
|
2012-09-10 22:18:49 +00:00
|
|
|
CREATE TABLE ti LIKE t;
|
|
|
|
ALTER TABLE ti ENGINE=myisam;
|
|
|
|
INSERT INTO ti SELECT * from t;
|
2012-09-11 12:12:33 +00:00
|
|
|
ALTER TABLE ti CHANGE COLUMN a a BIGINT;
|
2012-09-07 12:09:49 +00:00
|
|
|
ALTER TABLE t CHANGE COLUMN a a BIGINT;
|
2012-09-10 22:18:49 +00:00
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
2012-09-07 12:09:49 +00:00
|
|
|
DROP TABLE t;
|
|
|
|
CREATE TABLE t (a MEDIUMINT);
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a 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 a SMALLINT;
|
|
|
|
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 );
|
2012-09-10 22:18:49 +00:00
|
|
|
CREATE TABLE ti LIKE t;
|
|
|
|
ALTER TABLE ti ENGINE=myisam;
|
|
|
|
INSERT INTO ti SELECT * from t;
|
2012-09-11 12:12:33 +00:00
|
|
|
ALTER TABLE ti CHANGE COLUMN a a MEDIUMINT;
|
2012-09-07 12:09:49 +00:00
|
|
|
ALTER TABLE t CHANGE COLUMN a a MEDIUMINT;
|
2012-09-10 22:18:49 +00:00
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
2012-09-07 12:09:49 +00:00
|
|
|
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 );
|
2012-09-10 22:18:49 +00:00
|
|
|
CREATE TABLE ti LIKE t;
|
|
|
|
ALTER TABLE ti ENGINE=myisam;
|
|
|
|
INSERT INTO ti SELECT * from t;
|
2012-09-11 12:12:33 +00:00
|
|
|
ALTER TABLE ti CHANGE COLUMN a a INT;
|
2012-09-07 12:09:49 +00:00
|
|
|
ALTER TABLE t CHANGE COLUMN a a INT;
|
2012-09-10 22:18:49 +00:00
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
2012-09-07 12:09:49 +00:00
|
|
|
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 );
|
2012-09-10 22:18:49 +00:00
|
|
|
CREATE TABLE ti LIKE t;
|
|
|
|
ALTER TABLE ti ENGINE=myisam;
|
|
|
|
INSERT INTO ti SELECT * from t;
|
2012-09-11 12:12:33 +00:00
|
|
|
ALTER TABLE ti CHANGE COLUMN a a BIGINT;
|
2012-09-07 12:09:49 +00:00
|
|
|
ALTER TABLE t CHANGE COLUMN a a BIGINT;
|
2012-09-10 22:18:49 +00:00
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
2012-09-07 12:09:49 +00:00
|
|
|
DROP TABLE t;
|
|
|
|
CREATE TABLE t (a INT);
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a 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 a 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 a MEDIUMINT;
|
|
|
|
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
|
|
|
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 );
|
2012-09-10 22:18:49 +00:00
|
|
|
CREATE TABLE ti LIKE t;
|
|
|
|
ALTER TABLE ti ENGINE=myisam;
|
|
|
|
INSERT INTO ti SELECT * from t;
|
2012-09-11 12:12:33 +00:00
|
|
|
ALTER TABLE ti CHANGE COLUMN a a INT;
|
2012-09-07 12:09:49 +00:00
|
|
|
ALTER TABLE t CHANGE COLUMN a a INT;
|
2012-09-10 22:18:49 +00:00
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
2012-09-07 12:09:49 +00:00
|
|
|
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 );
|
2012-09-10 22:18:49 +00:00
|
|
|
CREATE TABLE ti LIKE t;
|
|
|
|
ALTER TABLE ti ENGINE=myisam;
|
|
|
|
INSERT INTO ti SELECT * from t;
|
2012-09-11 12:12:33 +00:00
|
|
|
ALTER TABLE ti CHANGE COLUMN a a BIGINT;
|
2012-09-07 12:09:49 +00:00
|
|
|
ALTER TABLE t CHANGE COLUMN a a BIGINT;
|
2012-09-10 22:18:49 +00:00
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
2012-09-07 12:09:49 +00:00
|
|
|
DROP TABLE t;
|
|
|
|
CREATE TABLE t (a BIGINT);
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a 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 a 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 a 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 a INT;
|
|
|
|
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
|
|
|
DROP TABLE t;
|
|
|
|
CREATE TABLE t (a BIGINT);
|
|
|
|
INSERT INTO t VALUES ( -9223372036854775808 );
|
|
|
|
INSERT INTO t VALUES ( 0 );
|
|
|
|
INSERT INTO t VALUES ( 1 );
|
|
|
|
INSERT INTO t VALUES ( 9223372036854775807 );
|
2012-09-10 22:18:49 +00:00
|
|
|
CREATE TABLE ti LIKE t;
|
|
|
|
ALTER TABLE ti ENGINE=myisam;
|
|
|
|
INSERT INTO ti SELECT * from t;
|
2012-09-11 12:12:33 +00:00
|
|
|
ALTER TABLE ti CHANGE COLUMN a a BIGINT;
|
2012-09-07 12:09:49 +00:00
|
|
|
ALTER TABLE t CHANGE COLUMN a a BIGINT;
|
2012-09-10 22:18:49 +00:00
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
2012-09-07 12:09:49 +00:00
|
|
|
DROP TABLE t;
|
2012-09-11 12:12:33 +00:00
|
|
|
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 a TINYINT UNSIGNED;
|
|
|
|
ALTER TABLE t CHANGE COLUMN a 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 a SMALLINT UNSIGNED;
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a SMALLINT 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 a MEDIUMINT UNSIGNED;
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a MEDIUMINT 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 a INT UNSIGNED;
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a INT 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 a BIGINT UNSIGNED;
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a BIGINT UNSIGNED;
|
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
|
|
|
DROP TABLE t;
|
|
|
|
CREATE TABLE t (a SMALLINT UNSIGNED);
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a 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);
|
|
|
|
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 a SMALLINT UNSIGNED;
|
|
|
|
ALTER TABLE t CHANGE COLUMN a 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 a MEDIUMINT UNSIGNED;
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a MEDIUMINT 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 a INT UNSIGNED;
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a INT 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 a BIGINT UNSIGNED;
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a BIGINT UNSIGNED;
|
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
|
|
|
DROP TABLE t;
|
|
|
|
CREATE TABLE t (a MEDIUMINT UNSIGNED);
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a 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 a 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);
|
|
|
|
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 a MEDIUMINT UNSIGNED;
|
|
|
|
ALTER TABLE t CHANGE COLUMN a 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 a INT UNSIGNED;
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a INT 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 a BIGINT UNSIGNED;
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a BIGINT UNSIGNED;
|
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
|
|
|
DROP TABLE t;
|
|
|
|
CREATE TABLE t (a INT UNSIGNED);
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a 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 a 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 a 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);
|
|
|
|
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 a INT UNSIGNED;
|
|
|
|
ALTER TABLE t CHANGE COLUMN a 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 a BIGINT UNSIGNED;
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a BIGINT UNSIGNED;
|
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
|
|
|
DROP TABLE t;
|
|
|
|
CREATE TABLE t (a BIGINT UNSIGNED);
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a 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 a 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 a 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 a 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);
|
|
|
|
INSERT INTO t VALUES ( 0 );
|
|
|
|
INSERT INTO t VALUES ( 1 );
|
|
|
|
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 a BIGINT UNSIGNED;
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a BIGINT UNSIGNED;
|
|
|
|
include/diff_tables.inc [test.t, test.ti]
|
|
|
|
DROP TABLE ti;
|
|
|
|
DROP TABLE t;
|