2
drop table if exists `T1`;
3
drop table if exists `T2`;
4
drop table if exists `T3`;
5
drop table if exists `T4`;
6
drop table if exists `T5`;
7
drop table if exists `T6`;
8
drop table if exists `T7`;
9
drop table if exists `T8`;
10
drop table if exists `T9`;
11
drop table if exists `T10`;
12
drop table if exists `T11`;
13
drop table if exists `T12`;
17
# Test REPLACE() function with Japanese characters in utf8 encoding
21
SET character_set_database = utf8;
23
CREATE TABLE `T1` (`C1` char(5)) DEFAULT CHARSET = utf8 engine = innodb;
24
CREATE TABLE `T2` (`C1` char(5)) DEFAULT CHARSET = utf8 engine = innodb;
25
CREATE TABLE `T3` (`C1` char(5)) DEFAULT CHARSET = utf8 engine = innodb;
26
CREATE TABLE `T4` (`C1` char(5)) DEFAULT CHARSET = utf8 engine = myisam;
27
CREATE TABLE `T5` (`C1` char(5)) DEFAULT CHARSET = utf8 engine = myisam;
28
CREATE TABLE `T6` (`C1` char(5)) DEFAULT CHARSET = utf8 engine = myisam;
29
CREATE TABLE `T7` (`C1` char(5)) DEFAULT CHARSET = utf8 engine = heap;
30
CREATE TABLE `T8` (`C1` char(5)) DEFAULT CHARSET = utf8 engine = heap;
31
CREATE TABLE `T9` (`C1` char(5)) DEFAULT CHARSET = utf8 engine = heap;
32
CREATE TABLE `T10` (`C1` char(5)) DEFAULT CHARSET = utf8 engine = bdb;
33
CREATE TABLE `T11` (`C1` char(5)) DEFAULT CHARSET = utf8 engine = bdb;
34
CREATE TABLE `T12` (`C1` char(5)) DEFAULT CHARSET = utf8 engine = bdb;
36
INSERT INTO `T1` VALUES ('アイウエオ');
37
INSERT INTO `T2` VALUES ('あいうえお');
38
INSERT INTO `T3` VALUES ('龔龖龗龞龡');
39
INSERT INTO `T4` VALUES ('アイウエオ');
40
INSERT INTO `T5` VALUES ('あいうえお');
41
INSERT INTO `T6` VALUES ('龔龖龗龞龡');
42
INSERT INTO `T7` VALUES ('アイウエオ');
43
INSERT INTO `T8` VALUES ('あいうえお');
44
INSERT INTO `T9` VALUES ('龔龖龗龞龡');
45
INSERT INTO `T10` VALUES ('アイウエオ');
46
INSERT INTO `T11` VALUES ('あいうえお');
47
INSERT INTO `T12` VALUES ('龔龖龗龞龡');
50
SELECT REPLACE(`C1`,'ア','アア') FROM `T1`;
51
SELECT REPLACE(`C1`,'イ','イイ') FROM `T1`;
52
SELECT REPLACE(`C1`,'ウ','ウウ') FROM `T1`;
53
SELECT REPLACE(`C1`,'エ','エエ') FROM `T1`;
54
SELECT REPLACE(`C1`,'オ','オオ') FROM `T1`;
55
SELECT REPLACE(`C1`,'あ','ああ') FROM `T2`;
56
SELECT REPLACE(`C1`,'い','いい') FROM `T2`;
57
SELECT REPLACE(`C1`,'う','うう') FROM `T2`;
58
SELECT REPLACE(`C1`,'え','ええ') FROM `T2`;
59
SELECT REPLACE(`C1`,'お','おお') FROM `T2`;
60
SELECT REPLACE(`C1`,'龔','龔龔') FROM `T3`;
61
SELECT REPLACE(`C1`,'龖','龖龖') FROM `T3`;
62
SELECT REPLACE(`C1`,'龗','龗龗') FROM `T3`;
63
SELECT REPLACE(`C1`,'龞','龞龞') FROM `T3`;
64
SELECT REPLACE(`C1`,'龡','龡龡') FROM `T3`;
67
SELECT REPLACE(`C1`,'ア','アア') FROM `T4`;
68
SELECT REPLACE(`C1`,'イ','イイ') FROM `T4`;
69
SELECT REPLACE(`C1`,'ウ','ウウ') FROM `T4`;
70
SELECT REPLACE(`C1`,'エ','エエ') FROM `T4`;
71
SELECT REPLACE(`C1`,'オ','オオ') FROM `T4`;
72
SELECT REPLACE(`C1`,'あ','ああ') FROM `T5`;
73
SELECT REPLACE(`C1`,'い','いい') FROM `T5`;
74
SELECT REPLACE(`C1`,'う','うう') FROM `T5`;
75
SELECT REPLACE(`C1`,'え','ええ') FROM `T5`;
76
SELECT REPLACE(`C1`,'お','おお') FROM `T5`;
77
SELECT REPLACE(`C1`,'龔','龔龔') FROM `T6`;
78
SELECT REPLACE(`C1`,'龖','龖龖') FROM `T6`;
79
SELECT REPLACE(`C1`,'龗','龗龗') FROM `T6`;
80
SELECT REPLACE(`C1`,'龞','龞龞') FROM `T6`;
81
SELECT REPLACE(`C1`,'龡','龡龡') FROM `T6`;
84
SELECT REPLACE(`C1`,'ア','アア') FROM `T7`;
85
SELECT REPLACE(`C1`,'イ','イイ') FROM `T7`;
86
SELECT REPLACE(`C1`,'ウ','ウウ') FROM `T7`;
87
SELECT REPLACE(`C1`,'エ','エエ') FROM `T7`;
88
SELECT REPLACE(`C1`,'オ','オオ') FROM `T7`;
89
SELECT REPLACE(`C1`,'あ','ああ') FROM `T8`;
90
SELECT REPLACE(`C1`,'い','いい') FROM `T8`;
91
SELECT REPLACE(`C1`,'う','うう') FROM `T8`;
92
SELECT REPLACE(`C1`,'え','ええ') FROM `T8`;
93
SELECT REPLACE(`C1`,'お','おお') FROM `T8`;
94
SELECT REPLACE(`C1`,'龔','龔龔') FROM `T9`;
95
SELECT REPLACE(`C1`,'龖','龖龖') FROM `T9`;
96
SELECT REPLACE(`C1`,'龗','龗龗') FROM `T9`;
97
SELECT REPLACE(`C1`,'龞','龞龞') FROM `T9`;
98
SELECT REPLACE(`C1`,'龡','龡龡') FROM `T9`;
101
SELECT REPLACE(`C1`,'ア','アア') FROM `T10`;
102
SELECT REPLACE(`C1`,'イ','イイ') FROM `T10`;
103
SELECT REPLACE(`C1`,'ウ','ウウ') FROM `T10`;
104
SELECT REPLACE(`C1`,'エ','エエ') FROM `T10`;
105
SELECT REPLACE(`C1`,'オ','オオ') FROM `T10`;
106
SELECT REPLACE(`C1`,'あ','ああ') FROM `T11`;
107
SELECT REPLACE(`C1`,'い','いい') FROM `T11`;
108
SELECT REPLACE(`C1`,'う','うう') FROM `T11`;
109
SELECT REPLACE(`C1`,'え','ええ') FROM `T11`;
110
SELECT REPLACE(`C1`,'お','おお') FROM `T11`;
111
SELECT REPLACE(`C1`,'龔','龔龔') FROM `T12`;
112
SELECT REPLACE(`C1`,'龖','龖龖') FROM `T12`;
113
SELECT REPLACE(`C1`,'龗','龗龗') FROM `T12`;
114
SELECT REPLACE(`C1`,'龞','龞龞') FROM `T12`;
115
SELECT REPLACE(`C1`,'龡','龡龡') FROM `T12`;