1
-- source include/have_gb2312.inc
4
# Tests with the gb2312 character set
7
drop table if exists t1;
10
SET @test_character_set= 'gb2312';
11
SET @test_collation= 'gb2312_chinese_ci';
12
-- source include/ctype_common.inc
15
SET collation_connection='gb2312_chinese_ci';
16
-- source include/ctype_filesort.inc
17
-- source include/ctype_innodb_like.inc
18
-- source include/ctype_like_escape.inc
19
-- source include/ctype_like_range_f1f2.inc
20
SET collation_connection='gb2312_bin';
21
-- source include/ctype_filesort.inc
22
-- source include/ctype_innodb_like.inc
23
-- source include/ctype_like_escape.inc
24
-- source include/ctype_like_range_f1f2.inc
27
# Bug#15377 Valid multibyte sequences are truncated on INSERT
30
CREATE TABLE t1 (a text) character set gb2312;
31
INSERT INTO t1 VALUES (0xA2A1),(0xD7FE);
32
SELECT hex(a) FROM t1 ORDER BY a;
39
--source include/weight_string.inc
40
--source include/weight_string_l1.inc
41
--source include/weight_string_A1A1.inc
43
set collation_connection=gb2312_bin;
44
--source include/weight_string.inc
45
--source include/weight_string_l1.inc
46
--source include/weight_string_A1A1.inc