summaryrefslogtreecommitdiff
path: root/mysql-test/suite/parts/t/part_ctype_utf32.test
blob: 12aa1fb37514a5f4ebe5beddcd877b979bbf0854 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
################################################################################
# t/partition_ctype_utf32.test                                                 #
#                                                                              #
# Purpose:                                                                     #
#  Tests for partitions + UTF32                                                #
#                                                                              #
#------------------------------------------------------------------------------#
# Original Author: Alexander Barkov                                            #
# Original Date: 2010-08-05                                                    #
# Change Author:                                                               #
# Change Date:                                                                 #
# Change:                                                                      #
################################################################################

--source include/have_partition.inc
--source include/have_utf32.inc

--echo #
--echo # Bug#52121 partition by key on utf32 enum field cause debug assertion: (length % 4) == 0
--echo #

DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (
 a enum('a') CHARACTER SET utf32 COLLATE utf32_spanish2_ci
) ENGINE=MYISAM PARTITION BY KEY(a) PARTITIONS 2;
INSERT INTO t1 VALUES ('a');
SELECT * FROM t1;
DROP TABLE t1;