1
--source include/have_ujis.inc
4
drop table if exists `�ԣ�`;
5
drop table if exists `�ԣ�`;
6
drop table if exists `�ԣ�`;
7
drop table if exists `�ԣ�`;
8
drop table if exists `�ԣ�`;
9
drop table if exists `�ԣ�`;
10
drop table if exists `�ԣ�`;
11
drop table if exists `�ԣ�`;
12
drop table if exists `�ԣ�`;
13
drop table if exists `�ԣ���`;
14
drop table if exists `�ԣ���`;
15
drop table if exists `�ԣ���`;
19
# Test CHARSET() function with Japanese characters in ujis encoding
23
SET character_set_database = ujis;
25
CREATE TABLE `�ԣ�` (`�ã�` char(20)) DEFAULT CHARSET = ujis engine = innodb;
26
CREATE TABLE `�ԣ�` (`�ã�` char(20)) DEFAULT CHARSET = ujis engine = innodb;
27
CREATE TABLE `�ԣ�` (`�ã�` char(20)) DEFAULT CHARSET = ujis engine = innodb;
28
CREATE TABLE `�ԣ�` (`�ã�` char(20)) DEFAULT CHARSET = ujis engine = myisam;
29
CREATE TABLE `�ԣ�` (`�ã�` char(20)) DEFAULT CHARSET = ujis engine = myisam;
30
CREATE TABLE `�ԣ�` (`�ã�` char(20)) DEFAULT CHARSET = ujis engine = myisam;
31
CREATE TABLE `�ԣ�` (`�ã�` char(20)) DEFAULT CHARSET = ujis engine = heap;
32
CREATE TABLE `�ԣ�` (`�ã�` char(20)) DEFAULT CHARSET = ujis engine = heap;
33
CREATE TABLE `�ԣ�` (`�ã�` char(20)) DEFAULT CHARSET = ujis engine = heap;
34
CREATE TABLE `�ԣ���` (`�ã�` char(20)) DEFAULT CHARSET = ujis engine = bdb;
35
CREATE TABLE `�ԣ���` (`�ã�` char(20)) DEFAULT CHARSET = ujis engine = bdb;
36
CREATE TABLE `�ԣ���` (`�ã�` char(20)) DEFAULT CHARSET = ujis engine = bdb;
38
#Load the following data in each table
39
# jisx0201 hankaku-katakana data
41
# jisx0212 supplemental character data
43
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `�ԣ�`;
44
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `�ԣ�`;
45
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `�ԣ�`;
46
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `�ԣ�`;
47
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `�ԣ�`;
48
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `�ԣ�`;
49
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `�ԣ�`;
50
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `�ԣ�`;
51
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `�ԣ�`;
52
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `�ԣ���`;
53
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `�ԣ���`;
54
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `�ԣ���`;
57
SELECT DISTINCT CHARSET(`�ã�`) FROM `�ԣ�`;
58
SELECT DISTINCT CHARSET(`�ã�`) FROM `�ԣ�`;
59
SELECT DISTINCT CHARSET(`�ã�`) FROM `�ԣ�`;
60
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING utf8)) FROM `�ԣ�`;
61
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ucs2)) FROM `�ԣ�`;
62
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING sjis)) FROM `�ԣ�`;
63
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ujis)) FROM `�ԣ�`;
64
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING utf8)) FROM `�ԣ�`;
65
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ucs2)) FROM `�ԣ�`;
66
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING sjis)) FROM `�ԣ�`;
67
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ujis)) FROM `�ԣ�`;
68
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING utf8)) FROM `�ԣ�`;
69
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ucs2)) FROM `�ԣ�`;
70
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING sjis)) FROM `�ԣ�`;
71
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ujis)) FROM `�ԣ�`;
74
SELECT DISTINCT CHARSET(`�ã�`) FROM `�ԣ�`;
75
SELECT DISTINCT CHARSET(`�ã�`) FROM `�ԣ�`;
76
SELECT DISTINCT CHARSET(`�ã�`) FROM `�ԣ�`;
77
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING utf8)) FROM `�ԣ�`;
78
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ucs2)) FROM `�ԣ�`;
79
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING sjis)) FROM `�ԣ�`;
80
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ujis)) FROM `�ԣ�`;
81
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING utf8)) FROM `�ԣ�`;
82
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ucs2)) FROM `�ԣ�`;
83
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING sjis)) FROM `�ԣ�`;
84
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ujis)) FROM `�ԣ�`;
85
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING utf8)) FROM `�ԣ�`;
86
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ucs2)) FROM `�ԣ�`;
87
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING sjis)) FROM `�ԣ�`;
88
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ujis)) FROM `�ԣ�`;
91
SELECT DISTINCT CHARSET(`�ã�`) FROM `�ԣ�`;
92
SELECT DISTINCT CHARSET(`�ã�`) FROM `�ԣ�`;
93
SELECT DISTINCT CHARSET(`�ã�`) FROM `�ԣ�`;
94
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING utf8)) FROM `�ԣ�`;
95
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ucs2)) FROM `�ԣ�`;
96
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING sjis)) FROM `�ԣ�`;
97
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ujis)) FROM `�ԣ�`;
98
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING utf8)) FROM `�ԣ�`;
99
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ucs2)) FROM `�ԣ�`;
100
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING sjis)) FROM `�ԣ�`;
101
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ujis)) FROM `�ԣ�`;
102
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING utf8)) FROM `�ԣ�`;
103
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ucs2)) FROM `�ԣ�`;
104
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING sjis)) FROM `�ԣ�`;
105
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ujis)) FROM `�ԣ�`;
108
SELECT DISTINCT CHARSET(`�ã�`) FROM `�ԣ���`;
109
SELECT DISTINCT CHARSET(`�ã�`) FROM `�ԣ���`;
110
SELECT DISTINCT CHARSET(`�ã�`) FROM `�ԣ���`;
111
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING utf8)) FROM `�ԣ���`;
112
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ucs2)) FROM `�ԣ���`;
113
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING sjis)) FROM `�ԣ���`;
114
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ujis)) FROM `�ԣ���`;
115
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING utf8)) FROM `�ԣ���`;
116
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ucs2)) FROM `�ԣ���`;
117
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING sjis)) FROM `�ԣ���`;
118
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ujis)) FROM `�ԣ���`;
119
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING utf8)) FROM `�ԣ���`;
120
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ucs2)) FROM `�ԣ���`;
121
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING sjis)) FROM `�ԣ���`;
122
SELECT DISTINCT CHARSET(CONVERT(`�ã�` USING ujis)) FROM `�ԣ���`;