3
drop table if exists `�s�P`;
4
drop table if exists `�s�Q`;
5
drop table if exists `�s�R`;
6
drop table if exists `�s�S`;
7
drop table if exists `�s�T`;
8
drop table if exists `�s�U`;
9
drop table if exists `�s�V`;
10
drop table if exists `�s�W`;
11
drop table if exists `�s�X`;
12
drop table if exists `�s�P�O`;
13
drop table if exists `�s�P�P`;
14
drop table if exists `�s�P�Q`;
18
# Test REVERSE() function with Japanese characters in sjis encoding
22
SET character_set_database = sjis;
24
CREATE TABLE `�s�P` (`�b�P` char(5), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = innodb;
25
CREATE TABLE `�s�Q` (`�b�P` char(5), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = innodb;
26
CREATE TABLE `�s�R` (`�b�P` char(5), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = innodb;
27
CREATE TABLE `�s�S` (`�b�P` char(5), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = myisam;
28
CREATE TABLE `�s�T` (`�b�P` char(5), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = myisam;
29
CREATE TABLE `�s�U` (`�b�P` char(5), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = myisam;
30
CREATE TABLE `�s�V` (`�b�P` char(5), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = heap;
31
CREATE TABLE `�s�W` (`�b�P` char(5), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = heap;
32
CREATE TABLE `�s�X` (`�b�P` char(5), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = heap;
33
CREATE TABLE `�s�P�O` (`�b�P` char(5), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = bdb;
34
CREATE TABLE `�s�P�P` (`�b�P` char(5), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = bdb;
35
CREATE TABLE `�s�P�Q` (`�b�P` char(5), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = bdb;
37
INSERT INTO `�s�P` VALUES ('�����');
38
INSERT INTO `�s�Q` VALUES ('����������');
39
INSERT INTO `�s�R` VALUES ('�\�\�\�\�\');
40
INSERT INTO `�s�S` VALUES ('�����');
41
INSERT INTO `�s�T` VALUES ('����������');
42
INSERT INTO `�s�U` VALUES ('�\�\�\�\�\');
43
INSERT INTO `�s�V` VALUES ('�����');
44
INSERT INTO `�s�W` VALUES ('����������');
45
INSERT INTO `�s�X` VALUES ('�\�\�\�\�\');
46
INSERT INTO `�s�P�O` VALUES ('�����');
47
INSERT INTO `�s�P�P` VALUES ('����������');
48
INSERT INTO `�s�P�Q` VALUES ('�\�\�\�\�\');
51
SELECT REVERSE(`�b�P`) FROM `�s�P`;
52
SELECT REVERSE(`�b�P`) FROM `�s�Q`;
53
SELECT REVERSE(`�b�P`) FROM `�s�R`;
56
SELECT REVERSE(`�b�P`) FROM `�s�S`;
57
SELECT REVERSE(`�b�P`) FROM `�s�T`;
58
SELECT REVERSE(`�b�P`) FROM `�s�U`;
61
SELECT REVERSE(`�b�P`) FROM `�s�V`;
62
SELECT REVERSE(`�b�P`) FROM `�s�W`;
63
SELECT REVERSE(`�b�P`) FROM `�s�X`;
66
SELECT REVERSE(`�b�P`) FROM `�s�P�O`;
67
SELECT REVERSE(`�b�P`) FROM `�s�P�P`;
68
SELECT REVERSE(`�b�P`) FROM `�s�P�Q`;