~stewart/drizzle/embedded-innodb-create-select-transaction-arrgh

« back to all changes in this revision

Viewing changes to mysql-test/t/ctype_euckr.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_euckr.inc
 
2
 
 
3
#
 
4
# Tests with the euckr character set
 
5
#
 
6
--disable_warnings
 
7
drop table if exists t1;
 
8
--enable_warnings
 
9
 
 
10
SET @test_character_set= 'euckr';
 
11
SET @test_collation= 'euckr_korean_ci';
 
12
-- source include/ctype_common.inc
 
13
 
 
14
SET NAMES euckr;
 
15
SET collation_connection='euckr_korean_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='euckr_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 euckr;
 
30
CREATE TABLE t1 (a text) character set euckr;
 
31
INSERT INTO t1 VALUES (0xA2E6),(0xFEF7);
 
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 euckr;
 
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=euckr_bin;
 
44
--source include/weight_string.inc
 
45
--source include/weight_string_l1.inc
 
46
--source include/weight_string_A1A1.inc
 
47
 
 
48
#
 
49
#Bug #30315 Character sets: insertion of euckr code value 0xa141 fails
 
50
#
 
51
create table t1 (s1 varchar(5) character set euckr);
 
52
# Insert some valid characters
 
53
insert into t1 values (0xA141);
 
54
insert into t1 values (0xA15A);
 
55
insert into t1 values (0xA161);
 
56
insert into t1 values (0xA17A);
 
57
insert into t1 values (0xA181);
 
58
insert into t1 values (0xA1FE);
 
59
# Insert some invalid characters
 
60
insert into t1 values (0xA140);
 
61
insert into t1 values (0xA15B);
 
62
insert into t1 values (0xA160);
 
63
insert into t1 values (0xA17B);
 
64
insert into t1 values (0xA180);
 
65
insert into t1 values (0xA1FF);
 
66
select hex(s1), hex(convert(s1 using utf8)) from t1 order by binary s1;
 
67
drop table t1;
 
68
 
 
69
--echo End of 5.0 tests