1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00
Files
mariadb/mysql-test/suite/engines/funcs/r/tc_column_default_string.result
Sergei Golubchik 72839c1435 MDEV-35245 SHOW CREATE TABLE produces unusable statement for vector fields with constant default value
print default values for binary types as binary strings
2024-11-05 14:00:52 -08:00

98 lines
2.4 KiB
Plaintext

DROP TABLE IF EXISTS t14;
CREATE TABLE t14(c1 CHAR(10) NULL DEFAULT 'x');
SHOW TABLES;
Tables_in_test
t14
SHOW CREATE TABLE t14;
Table Create Table
t14 CREATE TABLE `t14` (
`c1` char(10) DEFAULT 'x'
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
DROP TABLE t14;
SHOW TABLES;
Tables_in_test
CREATE TABLE t14(c1 VARCHAR(10) NULL DEFAULT 'x');
SHOW TABLES;
Tables_in_test
t14
SHOW CREATE TABLE t14;
Table Create Table
t14 CREATE TABLE `t14` (
`c1` varchar(10) DEFAULT 'x'
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
DROP TABLE t14;
SHOW TABLES;
Tables_in_test
CREATE TABLE t14(c1 BINARY(10) NULL DEFAULT 'x');
SHOW TABLES;
Tables_in_test
t14
SHOW CREATE TABLE t14;
Table Create Table
t14 CREATE TABLE `t14` (
`c1` binary(10) DEFAULT x'78000000000000000000'
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
DROP TABLE t14;
SHOW TABLES;
Tables_in_test
CREATE TABLE t14(c1 VARBINARY(10) NULL DEFAULT 'x');
SHOW TABLES;
Tables_in_test
t14
SHOW CREATE TABLE t14;
Table Create Table
t14 CREATE TABLE `t14` (
`c1` varbinary(10) DEFAULT x'78'
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
DROP TABLE t14;
SHOW TABLES;
Tables_in_test
CREATE TABLE t14(c1 CHAR(10) NOT NULL DEFAULT 'x');
SHOW TABLES;
Tables_in_test
t14
SHOW CREATE TABLE t14;
Table Create Table
t14 CREATE TABLE `t14` (
`c1` char(10) NOT NULL DEFAULT 'x'
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
DROP TABLE t14;
SHOW TABLES;
Tables_in_test
CREATE TABLE t14(c1 VARCHAR(10) NOT NULL DEFAULT 'x');
SHOW TABLES;
Tables_in_test
t14
SHOW CREATE TABLE t14;
Table Create Table
t14 CREATE TABLE `t14` (
`c1` varchar(10) NOT NULL DEFAULT 'x'
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
DROP TABLE t14;
SHOW TABLES;
Tables_in_test
CREATE TABLE t14(c1 BINARY(10) NOT NULL DEFAULT 'x');
SHOW TABLES;
Tables_in_test
t14
SHOW CREATE TABLE t14;
Table Create Table
t14 CREATE TABLE `t14` (
`c1` binary(10) NOT NULL DEFAULT x'78000000000000000000'
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
DROP TABLE t14;
SHOW TABLES;
Tables_in_test
CREATE TABLE t14(c1 VARBINARY(10) NOT NULL DEFAULT 'x');
SHOW TABLES;
Tables_in_test
t14
SHOW CREATE TABLE t14;
Table Create Table
t14 CREATE TABLE `t14` (
`c1` varbinary(10) NOT NULL DEFAULT x'78'
) ENGINE=ENGINE DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
DROP TABLE t14;
SHOW TABLES;
Tables_in_test