polardbxengine/mysql-test/suite/engines/funcs/r/tc_column_length_decimals.r...

195 lines
4.4 KiB
Plaintext

DROP TABLE IF EXISTS t6;
DROP TABLE IF EXISTS t7;
CREATE TABLE t6(c1 DECIMAL(1,0) NULL);
SHOW TABLES;
Tables_in_test
t6
SHOW CREATE TABLE t6;
Table Create Table
t6 CREATE TABLE `t6` (
`c1` decimal(1,0) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t6;
SHOW TABLES;
Tables_in_test
CREATE TABLE t7(c1 DECIMAL(5,4) NULL);
SHOW TABLES;
Tables_in_test
t7
SHOW CREATE TABLE t7;
Table Create Table
t7 CREATE TABLE `t7` (
`c1` decimal(5,4) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t7;
SHOW TABLES;
Tables_in_test
CREATE TABLE t6(c1 DEC(1,0) NULL);
SHOW TABLES;
Tables_in_test
t6
SHOW CREATE TABLE t6;
Table Create Table
t6 CREATE TABLE `t6` (
`c1` decimal(1,0) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t6;
SHOW TABLES;
Tables_in_test
CREATE TABLE t7(c1 DEC(5,4) NULL);
SHOW TABLES;
Tables_in_test
t7
SHOW CREATE TABLE t7;
Table Create Table
t7 CREATE TABLE `t7` (
`c1` decimal(5,4) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t7;
SHOW TABLES;
Tables_in_test
CREATE TABLE t6(c1 FIXED(1,0) NULL);
SHOW TABLES;
Tables_in_test
t6
SHOW CREATE TABLE t6;
Table Create Table
t6 CREATE TABLE `t6` (
`c1` decimal(1,0) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t6;
SHOW TABLES;
Tables_in_test
CREATE TABLE t7(c1 FIXED(5,4) NULL);
SHOW TABLES;
Tables_in_test
t7
SHOW CREATE TABLE t7;
Table Create Table
t7 CREATE TABLE `t7` (
`c1` decimal(5,4) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t7;
SHOW TABLES;
Tables_in_test
CREATE TABLE t6(c1 NUMERIC(1,0) NULL);
SHOW TABLES;
Tables_in_test
t6
SHOW CREATE TABLE t6;
Table Create Table
t6 CREATE TABLE `t6` (
`c1` decimal(1,0) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t6;
SHOW TABLES;
Tables_in_test
CREATE TABLE t7(c1 NUMERIC(5,4) NULL);
SHOW TABLES;
Tables_in_test
t7
SHOW CREATE TABLE t7;
Table Create Table
t7 CREATE TABLE `t7` (
`c1` decimal(5,4) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t7;
SHOW TABLES;
Tables_in_test
CREATE TABLE t6(c1 DECIMAL(1,0) NOT NULL);
SHOW TABLES;
Tables_in_test
t6
SHOW CREATE TABLE t6;
Table Create Table
t6 CREATE TABLE `t6` (
`c1` decimal(1,0) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t6;
SHOW TABLES;
Tables_in_test
CREATE TABLE t7(c1 DECIMAL(5,4) NOT NULL);
SHOW TABLES;
Tables_in_test
t7
SHOW CREATE TABLE t7;
Table Create Table
t7 CREATE TABLE `t7` (
`c1` decimal(5,4) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t7;
SHOW TABLES;
Tables_in_test
CREATE TABLE t6(c1 DEC(1,0) NOT NULL);
SHOW TABLES;
Tables_in_test
t6
SHOW CREATE TABLE t6;
Table Create Table
t6 CREATE TABLE `t6` (
`c1` decimal(1,0) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t6;
SHOW TABLES;
Tables_in_test
CREATE TABLE t7(c1 DEC(5,4) NOT NULL);
SHOW TABLES;
Tables_in_test
t7
SHOW CREATE TABLE t7;
Table Create Table
t7 CREATE TABLE `t7` (
`c1` decimal(5,4) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t7;
SHOW TABLES;
Tables_in_test
CREATE TABLE t6(c1 FIXED(1,0) NOT NULL);
SHOW TABLES;
Tables_in_test
t6
SHOW CREATE TABLE t6;
Table Create Table
t6 CREATE TABLE `t6` (
`c1` decimal(1,0) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t6;
SHOW TABLES;
Tables_in_test
CREATE TABLE t7(c1 FIXED(5,4) NOT NULL);
SHOW TABLES;
Tables_in_test
t7
SHOW CREATE TABLE t7;
Table Create Table
t7 CREATE TABLE `t7` (
`c1` decimal(5,4) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t7;
SHOW TABLES;
Tables_in_test
CREATE TABLE t6(c1 NUMERIC(1,0) NOT NULL);
SHOW TABLES;
Tables_in_test
t6
SHOW CREATE TABLE t6;
Table Create Table
t6 CREATE TABLE `t6` (
`c1` decimal(1,0) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t6;
SHOW TABLES;
Tables_in_test
CREATE TABLE t7(c1 NUMERIC(5,4) NOT NULL);
SHOW TABLES;
Tables_in_test
t7
SHOW CREATE TABLE t7;
Table Create Table
t7 CREATE TABLE `t7` (
`c1` decimal(5,4) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
DROP TABLE t7;
SHOW TABLES;
Tables_in_test