mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
72 lines
2.5 KiB
Text
72 lines
2.5 KiB
Text
|
--source include/have_partition.inc
|
||
|
--source include/have_debug_sync.inc
|
||
|
|
||
|
--echo #
|
||
|
--echo # Start of 10.5 tests
|
||
|
--echo #
|
||
|
|
||
|
--echo #
|
||
|
--echo # MDEV-20856 Bad values in metadata views for partitions on VARBINARY
|
||
|
--echo #
|
||
|
|
||
|
SET NAMES utf8;
|
||
|
SET @save_dbug = @@debug_dbug;
|
||
|
SET SESSION debug_dbug="+d,generate_partition_syntax_for_frm";
|
||
|
|
||
|
|
||
|
--error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED
|
||
|
CREATE OR REPLACE TABLE t1 (a VARCHAR(10)) CHARACTER SET latin1
|
||
|
PARTITION BY LIST COLUMNS (a) (PARTITION p0 VALUES IN (_utf8'Ṡ'));
|
||
|
|
||
|
--error ER_PARTITION_FUNCTION_IS_NOT_ALLOWED
|
||
|
CREATE OR REPLACE TABLE t1 (a VARCHAR(10)) CHARACTER SET latin1
|
||
|
PARTITION BY LIST COLUMNS (a) (PARTITION p0 VALUES IN ('Ṡ'));
|
||
|
|
||
|
CREATE OR REPLACE TABLE t1 (a VARCHAR(10)) CHARACTER SET latin1
|
||
|
PARTITION BY LIST COLUMNS (a) (PARTITION p0 VALUES IN (_latin1 0xDF));
|
||
|
SELECT PARTITION_DESCRIPTION FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_NAME='t1';
|
||
|
DROP TABLE t1;
|
||
|
|
||
|
CREATE OR REPLACE TABLE t1 (a VARCHAR(10)) CHARACTER SET latin1
|
||
|
PARTITION BY LIST COLUMNS (a) (PARTITION p0 VALUES IN (_utf8'ß'));
|
||
|
SELECT PARTITION_DESCRIPTION FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_NAME='t1';
|
||
|
DROP TABLE t1;
|
||
|
|
||
|
CREATE OR REPLACE TABLE t1 (a VARCHAR(10)) CHARACTER SET latin1
|
||
|
PARTITION BY LIST COLUMNS (a) (PARTITION p0 VALUES IN ('ß'));
|
||
|
DROP TABLE t1;
|
||
|
|
||
|
CREATE OR REPLACE TABLE t1 (a VARCHAR(10)) CHARACTER SET utf8
|
||
|
PARTITION BY LIST COLUMNS (a) (PARTITION p0 VALUES IN (_utf8'ß'));
|
||
|
SELECT PARTITION_DESCRIPTION FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_NAME='t1';
|
||
|
DROP TABLE t1;
|
||
|
|
||
|
CREATE OR REPLACE TABLE t1 (a VARCHAR(10)) CHARACTER SET utf8
|
||
|
PARTITION BY LIST COLUMNS (a) (PARTITION p0 VALUES IN ('ß'));
|
||
|
SELECT PARTITION_DESCRIPTION FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_NAME='t1';
|
||
|
DROP TABLE t1;
|
||
|
|
||
|
|
||
|
CREATE OR REPLACE TABLE t1 (a VARBINARY(10)) CHARACTER SET utf8
|
||
|
PARTITION BY LIST COLUMNS (a) (PARTITION p0 VALUES IN (0xFF));
|
||
|
SELECT PARTITION_DESCRIPTION FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_NAME='t1';
|
||
|
DROP TABLE t1;
|
||
|
|
||
|
|
||
|
CREATE OR REPLACE TABLE t1 (a DATE) CHARACTER SET utf8
|
||
|
PARTITION BY LIST COLUMNS (a) (PARTITION p0 VALUES IN (FROM_DAYS(NULL)));
|
||
|
SELECT PARTITION_DESCRIPTION FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_NAME='t1';
|
||
|
DROP TABLE t1;
|
||
|
|
||
|
CREATE OR REPLACE TABLE t1 (a DATE) CHARACTER SET utf8
|
||
|
PARTITION BY LIST COLUMNS (a) (PARTITION p0 VALUES IN (FROM_DAYS(100)));
|
||
|
SELECT PARTITION_DESCRIPTION FROM INFORMATION_SCHEMA.PARTITIONS WHERE TABLE_NAME='t1';
|
||
|
DROP TABLE t1;
|
||
|
|
||
|
|
||
|
SET debug_dbug=@save_dbug;
|
||
|
|
||
|
--echo #
|
||
|
--echo # End of 10.5 tests
|
||
|
--echo #
|