~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/r/ctype_ucs2_def.result

  • 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
show variables like 'collation_server';
 
2
Variable_name   Value
 
3
collation_server        ucs2_unicode_ci
 
4
show variables like "%character_set_ser%";
 
5
Variable_name   Value
 
6
character_set_server    ucs2
 
7
DROP TABLE IF EXISTS t1;
 
8
create table t1 (a int);
 
9
drop table t1;
 
10
End of 4.1 tests
 
11
create table t1 (a char(1) character set latin1);
 
12
insert into t1 values ('a'),('b'),('c');
 
13
select hex(group_concat(a)) from t1;
 
14
hex(group_concat(a))
 
15
612C622C63
 
16
drop table t1;
 
17
CREATE TABLE t1(col1 VARCHAR(32) CHARACTER SET ucs2 COLLATE ucs2_bin NOT NULL, 
 
18
col2 VARCHAR(32) CHARACTER SET ucs2 COLLATE ucs2_bin NOT NULL, 
 
19
UNIQUE KEY key1 USING HASH (col1, col2)) ENGINE=MEMORY;
 
20
INSERT INTO t1 VALUES('A', 'A'), ('B', 'B'), ('C', 'C');
 
21
INSERT INTO t1 VALUES('A ', 'A ');
 
22
ERROR 23000: Duplicate entry '' for key 'key1'
 
23
DROP TABLE t1;
 
24
CREATE TABLE t1 (
 
25
c1 CHAR(255) CHARACTER SET UCS2 COLLATE UCS2_BIN NOT NULL,
 
26
KEY(c1)
 
27
) ENGINE=MyISAM;
 
28
INSERT INTO t1 VALUES ('marshall\'s');
 
29
INSERT INTO t1 VALUES ('marsh');
 
30
CHECK TABLE t1 EXTENDED;
 
31
Table   Op      Msg_type        Msg_text
 
32
test.t1 check   status  OK
 
33
DROP TABLE t1;
 
34
End of 5.0 tests