~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/t/ctype_gb2312.test

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-- source include/have_gb2312.inc
 
2
 
 
3
#
 
4
# Tests with the gb2312 character set
 
5
#
 
6
--disable_warnings
 
7
drop table if exists t1;
 
8
--enable_warnings
 
9
 
 
10
SET @test_character_set= 'gb2312';
 
11
SET @test_collation= 'gb2312_chinese_ci';
 
12
-- source include/ctype_common.inc
 
13
 
 
14
SET NAMES gb2312;
 
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
 
25
 
 
26
#
 
27
# Bug#15377 Valid multibyte sequences are truncated on INSERT
 
28
#
 
29
SET NAMES gb2312;
 
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;
 
33
DROP TABLE t1;
 
34
 
 
35
# End of 4.1 tests
 
36
 
 
37
 
 
38
set names gb2312;
 
39
--source include/weight_string.inc
 
40
--source include/weight_string_l1.inc
 
41
--source include/weight_string_A1A1.inc
 
42
 
 
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