--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
CREATE TABLE t1(c1 TINYINT NOT NULL, c2 TINYINT NOT NULL, c3 TINYINT NOT NULL, PRIMARY KEY(c1,c2,c3));
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--sorted_result
SELECT * FROM t1;
DROP TABLE t1;
CREATE TABLE t1(c1 SMALLINT NOT NULL, c2 SMALLINT NOT NULL, c3 SMALLINT NOT NULL, PRIMARY KEY(c1,c2,c3));
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--sorted_result
SELECT * FROM t1;
DROP TABLE t1;
CREATE TABLE t1(c1 MEDIUMINT NOT NULL, c2 MEDIUMINT NOT NULL, c3 MEDIUMINT NOT NULL, PRIMARY KEY(c1,c2,c3));
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--sorted_result
SELECT * FROM t1;
DROP TABLE t1;
CREATE TABLE t1(c1 INT NOT NULL, c2 INT NOT NULL, c3 INT NOT NULL, PRIMARY KEY(c1,c2,c3));
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--sorted_result
SELECT * FROM t1;
DROP TABLE t1;
CREATE TABLE t1(c1 INTEGER NOT NULL, c2 INTEGER NOT NULL, c3 INTEGER NOT NULL, PRIMARY KEY(c1,c2,c3));
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--sorted_result
SELECT * FROM t1;
DROP TABLE t1;
CREATE TABLE t1(c1 BIGINT NOT NULL, c2 BIGINT NOT NULL, c3 BIGINT NOT NULL, PRIMARY KEY(c1,c2,c3));
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--sorted_result
SELECT * FROM t1;
DROP TABLE t1;
CREATE TABLE t1(c1 DECIMAL NOT NULL, c2 DECIMAL NOT NULL, c3 DECIMAL NOT NULL, PRIMARY KEY(c1,c2,c3));
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--sorted_result
SELECT * FROM t1;
DROP TABLE t1;
CREATE TABLE t1(c1 DEC NOT NULL, c2 DEC NOT NULL, c3 DEC NOT NULL, PRIMARY KEY(c1,c2,c3));
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--sorted_result
SELECT * FROM t1;
DROP TABLE t1;
CREATE TABLE t1(c1 FIXED NOT NULL, c2 FIXED NOT NULL, c3 FIXED NOT NULL, PRIMARY KEY(c1,c2,c3));
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--sorted_result
SELECT * FROM t1;
DROP TABLE t1;
CREATE TABLE t1(c1 NUMERIC NOT NULL, c2 NUMERIC NOT NULL, c3 NUMERIC NOT NULL, PRIMARY KEY(c1,c2,c3));
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--sorted_result
SELECT * FROM t1;
DROP TABLE t1;
CREATE TABLE t1(c1 DOUBLE NOT NULL, c2 DOUBLE NOT NULL, c3 DOUBLE NOT NULL, PRIMARY KEY(c1,c2,c3));
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--sorted_result
SELECT * FROM t1;
DROP TABLE t1;
CREATE TABLE t1(c1 REAL NOT NULL, c2 REAL NOT NULL, c3 REAL NOT NULL, PRIMARY KEY(c1,c2,c3));
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--sorted_result
SELECT * FROM t1;
DROP TABLE t1;
CREATE TABLE t1(c1 DOUBLE PRECISION NOT NULL, c2 DOUBLE PRECISION NOT NULL, c3 DOUBLE PRECISION NOT NULL, PRIMARY KEY(c1,c2,c3));
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--sorted_result
SELECT * FROM t1;
DROP TABLE t1;
CREATE TABLE t1(c1 FLOAT NOT NULL, c2 FLOAT NOT NULL, c3 FLOAT NOT NULL, PRIMARY KEY(c1,c2,c3));
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,11,10);
INSERT INTO t1 (c1,c2,c3) VALUES(11,10,11);
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,10);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,10,11);
--error ER_DUP_ENTRY
INSERT INTO t1 (c1,c2,c3) VALUES(10,11,11);
--sorted_result
SELECT * FROM t1;
DROP TABLE t1;

