1
--source include/have_ucs2.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 ucs2 encoding
21
SET character_set_database = ucs2;
22
SET collation_connection = ucs2_general_ci;
24
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = innodb;
25
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = innodb;
26
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = innodb;
27
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = myisam;
28
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = myisam;
29
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = myisam;
30
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = heap;
31
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = heap;
32
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = heap;
33
CREATE TABLE `�ԣ���` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = bdb;
34
CREATE TABLE `�ԣ���` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = bdb;
35
CREATE TABLE `�ԣ���` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ucs2 engine = bdb;
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 ('����������');
48
INSERT INTO `�ԣ���` VALUES ('���ݏ�ޏ�ߏ��');
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 `�ԣ�`;
68
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 `�ԣ�`;
88
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 `�ԣ�`;
109
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 `�ԣ���`;
130
SELECT LOCATE('���',`�ã�`) from `�ԣ���`;