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 LEFT() function with Japanese character in ujis encoding
23
SET character_set_database = ujis;
25
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = innodb;
26
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = innodb;
27
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = innodb;
28
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = myisam;
29
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = myisam;
30
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = myisam;
31
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = heap;
32
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = heap;
33
CREATE TABLE `�ԣ�` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = heap;
34
CREATE TABLE `�ԣ���` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = bdb;
35
CREATE TABLE `�ԣ���` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = bdb;
36
CREATE TABLE `�ԣ���` (`�ã�` char(5), INDEX(`�ã�`)) DEFAULT CHARSET = ujis engine = bdb;
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 ('����������'),('��������'),('������'),('����'),('��'),('');
49
INSERT INTO `�ԣ���` VALUES ('���ݏ�ޏ�ߏ��'),('���ݏ�ޏ��'),('���ݏ��'),('����'),('���'),('');
52
SELECT `�ã�`, LEFT(`�ã�`,0) FROM `�ԣ�`;
53
SELECT `�ã�`, LEFT(`�ã�`,1) FROM `�ԣ�`;
54
SELECT `�ã�`, LEFT(`�ã�`,2) FROM `�ԣ�`;
55
SELECT `�ã�`, LEFT(`�ã�`,3) FROM `�ԣ�`;
56
SELECT `�ã�`, LEFT(`�ã�`,4) FROM `�ԣ�`;
57
SELECT `�ã�`, LEFT(`�ã�`,5) FROM `�ԣ�`;
58
SELECT `�ã�`, LEFT(`�ã�`,0) FROM `�ԣ�`;
59
SELECT `�ã�`, LEFT(`�ã�`,1) FROM `�ԣ�`;
60
SELECT `�ã�`, LEFT(`�ã�`,2) FROM `�ԣ�`;
61
SELECT `�ã�`, LEFT(`�ã�`,3) FROM `�ԣ�`;
62
SELECT `�ã�`, LEFT(`�ã�`,4) FROM `�ԣ�`;
63
SELECT `�ã�`, LEFT(`�ã�`,5) FROM `�ԣ�`;
64
SELECT `�ã�`, LEFT(`�ã�`,0) FROM `�ԣ�`;
65
SELECT `�ã�`, LEFT(`�ã�`,1) FROM `�ԣ�`;
66
SELECT `�ã�`, LEFT(`�ã�`,2) FROM `�ԣ�`;
67
SELECT `�ã�`, LEFT(`�ã�`,3) FROM `�ԣ�`;
68
SELECT `�ã�`, LEFT(`�ã�`,4) FROM `�ԣ�`;
69
SELECT `�ã�`, LEFT(`�ã�`,5) FROM `�ԣ�`;
72
SELECT `�ã�`, LEFT(`�ã�`,0) FROM `�ԣ�`;
73
SELECT `�ã�`, LEFT(`�ã�`,1) FROM `�ԣ�`;
74
SELECT `�ã�`, LEFT(`�ã�`,2) FROM `�ԣ�`;
75
SELECT `�ã�`, LEFT(`�ã�`,3) FROM `�ԣ�`;
76
SELECT `�ã�`, LEFT(`�ã�`,4) FROM `�ԣ�`;
77
SELECT `�ã�`, LEFT(`�ã�`,5) FROM `�ԣ�`;
78
SELECT `�ã�`, LEFT(`�ã�`,0) FROM `�ԣ�`;
79
SELECT `�ã�`, LEFT(`�ã�`,1) FROM `�ԣ�`;
80
SELECT `�ã�`, LEFT(`�ã�`,2) FROM `�ԣ�`;
81
SELECT `�ã�`, LEFT(`�ã�`,3) FROM `�ԣ�`;
82
SELECT `�ã�`, LEFT(`�ã�`,4) FROM `�ԣ�`;
83
SELECT `�ã�`, LEFT(`�ã�`,5) FROM `�ԣ�`;
84
SELECT `�ã�`, LEFT(`�ã�`,0) FROM `�ԣ�`;
85
SELECT `�ã�`, LEFT(`�ã�`,1) FROM `�ԣ�`;
86
SELECT `�ã�`, LEFT(`�ã�`,2) FROM `�ԣ�`;
87
SELECT `�ã�`, LEFT(`�ã�`,3) FROM `�ԣ�`;
88
SELECT `�ã�`, LEFT(`�ã�`,4) FROM `�ԣ�`;
89
SELECT `�ã�`, LEFT(`�ã�`,5) FROM `�ԣ�`;
92
SELECT `�ã�`, LEFT(`�ã�`,0) FROM `�ԣ�`;
93
SELECT `�ã�`, LEFT(`�ã�`,1) FROM `�ԣ�`;
94
SELECT `�ã�`, LEFT(`�ã�`,2) FROM `�ԣ�`;
95
SELECT `�ã�`, LEFT(`�ã�`,3) FROM `�ԣ�`;
96
SELECT `�ã�`, LEFT(`�ã�`,4) FROM `�ԣ�`;
97
SELECT `�ã�`, LEFT(`�ã�`,5) FROM `�ԣ�`;
98
SELECT `�ã�`, LEFT(`�ã�`,0) FROM `�ԣ�`;
99
SELECT `�ã�`, LEFT(`�ã�`,1) FROM `�ԣ�`;
100
SELECT `�ã�`, LEFT(`�ã�`,2) FROM `�ԣ�`;
101
SELECT `�ã�`, LEFT(`�ã�`,3) FROM `�ԣ�`;
102
SELECT `�ã�`, LEFT(`�ã�`,4) FROM `�ԣ�`;
103
SELECT `�ã�`, LEFT(`�ã�`,5) FROM `�ԣ�`;
104
SELECT `�ã�`, LEFT(`�ã�`,0) FROM `�ԣ�`;
105
SELECT `�ã�`, LEFT(`�ã�`,1) FROM `�ԣ�`;
106
SELECT `�ã�`, LEFT(`�ã�`,2) FROM `�ԣ�`;
107
SELECT `�ã�`, LEFT(`�ã�`,3) FROM `�ԣ�`;
108
SELECT `�ã�`, LEFT(`�ã�`,4) FROM `�ԣ�`;
109
SELECT `�ã�`, LEFT(`�ã�`,5) FROM `�ԣ�`;
112
SELECT `�ã�`, LEFT(`�ã�`,0) FROM `�ԣ���`;
113
SELECT `�ã�`, LEFT(`�ã�`,1) FROM `�ԣ���`;
114
SELECT `�ã�`, LEFT(`�ã�`,2) FROM `�ԣ���`;
115
SELECT `�ã�`, LEFT(`�ã�`,3) FROM `�ԣ���`;
116
SELECT `�ã�`, LEFT(`�ã�`,4) FROM `�ԣ���`;
117
SELECT `�ã�`, LEFT(`�ã�`,5) FROM `�ԣ���`;
118
SELECT `�ã�`, LEFT(`�ã�`,0) FROM `�ԣ���`;
119
SELECT `�ã�`, LEFT(`�ã�`,1) FROM `�ԣ���`;
120
SELECT `�ã�`, LEFT(`�ã�`,2) FROM `�ԣ���`;
121
SELECT `�ã�`, LEFT(`�ã�`,3) FROM `�ԣ���`;
122
SELECT `�ã�`, LEFT(`�ã�`,4) FROM `�ԣ���`;
123
SELECT `�ã�`, LEFT(`�ã�`,5) FROM `�ԣ���`;
124
SELECT `�ã�`, LEFT(`�ã�`,0) FROM `�ԣ���`;
125
SELECT `�ã�`, LEFT(`�ã�`,1) FROM `�ԣ���`;
126
SELECT `�ã�`, LEFT(`�ã�`,2) FROM `�ԣ���`;
127
SELECT `�ã�`, LEFT(`�ã�`,3) FROM `�ԣ���`;
128
SELECT `�ã�`, LEFT(`�ã�`,4) FROM `�ԣ���`;
129
SELECT `�ã�`, LEFT(`�ã�`,5) FROM `�ԣ���`;