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 `�ԣ���`;
17
# Test LOCATE() function with Japanese characters in ujis encoding
21
SET character_set_database = ujis;
23
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = innodb;
24
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = innodb;
25
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = innodb;
26
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = myisam;
27
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = myisam;
28
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = myisam;
29
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = heap;
30
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = heap;
31
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = heap;
32
CREATE TABLE `�ԣ���` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = bdb;
33
CREATE TABLE `�ԣ���` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = bdb;
34
CREATE TABLE `�ԣ���` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = bdb;
36
INSERT INTO `�ԣ�` VALUES ('����������');
37
INSERT INTO `�ԣ�` VALUES ('����������');
38
INSERT INTO `�ԣ�` VALUES ('���ݏ�ޏ�ߏ��');
39
INSERT INTO `�ԣ�` VALUES ('����������');
40
INSERT INTO `�ԣ�` VALUES ('����������');
41
INSERT INTO `�ԣ�` VALUES ('���ݏ�ޏ�ߏ��');
42
INSERT INTO `�ԣ�` VALUES ('����������');
43
INSERT INTO `�ԣ�` VALUES ('����������');
44
INSERT INTO `�ԣ�` VALUES ('���ݏ�ޏ�ߏ��');
45
INSERT INTO `�ԣ���` VALUES ('����������');
46
INSERT INTO `�ԣ���` VALUES ('����������');
47
INSERT INTO `�ԣ���` VALUES ('���ݏ�ޏ�ߏ��');
50
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
51
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
52
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
53
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
54
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
55
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
56
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
57
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
58
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
59
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
60
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
61
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
62
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
63
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
64
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
65
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
66
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
67
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
70
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
71
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
72
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
73
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
74
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
75
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
76
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
77
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
78
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
79
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
80
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
81
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
82
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
83
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
84
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
85
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
86
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
87
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
91
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
92
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
93
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
94
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
95
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
96
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
97
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
98
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
99
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
100
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
101
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
102
SELECT LOCATE('��',`�ã�`) from `�ԣ�`;
103
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
104
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
105
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
106
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
107
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
108
SELECT LOCATE('���',`�ã�`) from `�ԣ�`;
112
SELECT LOCATE('��',`�ã�`) from `�ԣ���`;
113
SELECT LOCATE('��',`�ã�`) from `�ԣ���`;
114
SELECT LOCATE('��',`�ã�`) from `�ԣ���`;
115
SELECT LOCATE('��',`�ã�`) from `�ԣ���`;
116
SELECT LOCATE('��',`�ã�`) from `�ԣ���`;
117
SELECT LOCATE('��',`�ã�`) from `�ԣ���`;
118
SELECT LOCATE('��',`�ã�`) from `�ԣ���`;
119
SELECT LOCATE('��',`�ã�`) from `�ԣ���`;
120
SELECT LOCATE('��',`�ã�`) from `�ԣ���`;
121
SELECT LOCATE('��',`�ã�`) from `�ԣ���`;
122
SELECT LOCATE('��',`�ã�`) from `�ԣ���`;
123
SELECT LOCATE('��',`�ã�`) from `�ԣ���`;
124
SELECT LOCATE('���',`�ã�`) from `�ԣ���`;
125
SELECT LOCATE('���',`�ã�`) from `�ԣ���`;
126
SELECT LOCATE('���',`�ã�`) from `�ԣ���`;
127
SELECT LOCATE('���',`�ã�`) from `�ԣ���`;
128
SELECT LOCATE('���',`�ã�`) from `�ԣ���`;
129
SELECT LOCATE('���',`�ã�`) from `�ԣ���`;