1
by brian
clean slate |
1 |
--character_set sjis
|
2 |
--disable_warnings
|
|
3 |
drop table if exists `sP`; |
|
4 |
drop table if exists `sQ`; |
|
5 |
drop table if exists `sR`; |
|
6 |
drop table if exists `sS`; |
|
7 |
drop table if exists `sT`; |
|
8 |
drop table if exists `sU`; |
|
9 |
drop table if exists `sV`; |
|
10 |
drop table if exists `sW`; |
|
11 |
drop table if exists `sX`; |
|
12 |
drop table if exists `sPO`; |
|
13 |
drop table if exists `sPP`; |
|
14 |
drop table if exists `sPQ`; |
|
15 |
--enable_warnings
|
|
16 |
||
17 |
#
|
|
18 |
# Test RPAD() function with Japanese character in sjis encoding |
|
19 |
#
|
|
20 |
||
21 |
SET NAMES sjis; |
|
22 |
SET character_set_database = sjis; |
|
23 |
||
24 |
CREATE TABLE `sP` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = innodb; |
|
25 |
CREATE TABLE `sQ` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = innodb; |
|
26 |
CREATE TABLE `sR` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = innodb; |
|
27 |
CREATE TABLE `sS` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = myisam; |
|
28 |
CREATE TABLE `sT` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = myisam; |
|
29 |
CREATE TABLE `sU` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = myisam; |
|
30 |
CREATE TABLE `sV` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = heap; |
|
31 |
CREATE TABLE `sW` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = heap; |
|
32 |
CREATE TABLE `sX` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = heap; |
|
33 |
CREATE TABLE `sPO` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = bdb; |
|
34 |
CREATE TABLE `sPP` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = bdb; |
|
35 |
CREATE TABLE `sPQ` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = bdb; |
|
36 |
||
37 |
INSERT INTO `sP` VALUES ('±²³Žµ'),('±²³Ž'),('±²³'),('±²'),('±'),(''); |
|
38 |
INSERT INTO `sQ` VALUES (' ¢€Šš'),(' ¢€Š'),(' ¢€'),(' ¢'),(' '),(''); |
|
39 |
INSERT INTO `sR` VALUES ('\\\\\'),('\\\\'),('\\\'),('\\'),('\'),(''); |
|
40 |
INSERT INTO `sS` VALUES ('±²³Žµ'),('±²³Ž'),('±²³'),('±²'),('±'),(''); |
|
41 |
INSERT INTO `sT` VALUES (' ¢€Šš'),(' ¢€Š'),(' ¢€'),(' ¢'),(' '),(''); |
|
42 |
INSERT INTO `sU` VALUES ('\\\\\'),('\\\\'),('\\\'),('\\'),('\'),(''); |
|
43 |
INSERT INTO `sV` VALUES ('±²³Žµ'),('±²³Ž'),('±²³'),('±²'),('±'),(''); |
|
44 |
INSERT INTO `sW` VALUES (' ¢€Šš'),(' ¢€Š'),(' ¢€'),(' ¢'),(' '),(''); |
|
45 |
INSERT INTO `sX` VALUES ('\\\\\'),('\\\\'),('\\\'),('\\'),('\'),(''); |
|
46 |
INSERT INTO `sPO` VALUES ('±²³Žµ'),('±²³Ž'),('±²³'),('±²'),('±'),(''); |
|
47 |
INSERT INTO `sPP` VALUES (' ¢€Šš'),(' ¢€Š'),(' ¢€'),(' ¢'),(' '),(''); |
|
48 |
INSERT INTO `sPQ` VALUES ('\\\\\'),('\\\\'),('\\\'),('\\'),('\'),(''); |
|
49 |
||
50 |
#InnoDB |
|
51 |
SELECT `bP`, RPAD(`bP`,5,'¡') FROM `sP`; |
|
52 |
SELECT `bP`, RPAD(`bP`,5,'w') FROM `sQ`; |
|
53 |
SELECT `bP`, RPAD(`bP`,5,'\') FROM `sR`; |
|
54 |
||
55 |
#MyISAM |
|
56 |
SELECT `bP`, RPAD(`bP`,5,'¡') FROM `sS`; |
|
57 |
SELECT `bP`, RPAD(`bP`,5,'w') FROM `sT`; |
|
58 |
SELECT `bP`, RPAD(`bP`,5,'\' ) FROM `sU`; |
|
59 |
||
60 |
#HEAP |
|
61 |
SELECT `bP`, RPAD(`bP`,5,'¡') FROM `sV`; |
|
62 |
SELECT `bP`, RPAD(`bP`,5,'w') FROM `sW`; |
|
63 |
SELECT `bP`, RPAD(`bP`,5,'\' ) FROM `sX`; |
|
64 |
||
65 |
#BDB |
|
66 |
SELECT `bP`, RPAD(`bP`,5,'¡') FROM `sPO`; |
|
67 |
SELECT `bP`, RPAD(`bP`,5,'w') FROM `sPP`; |
|
68 |
SELECT `bP`, RPAD(`bP`,5,'\' ) FROM `sPQ`; |
|
69 |
||
70 |
DROP TABLE `sP`; |
|
71 |
DROP TABLE `sQ`; |
|
72 |
DROP TABLE `sR`; |
|
73 |
DROP TABLE `sS`; |
|
74 |
DROP TABLE `sT`; |
|
75 |
DROP TABLE `sU`; |
|
76 |
DROP TABLE `sV`; |
|
77 |
DROP TABLE `sW`; |
|
78 |
DROP TABLE `sX`; |
|
79 |
DROP TABLE `sPO`; |
|
80 |
DROP TABLE `sPP`; |
|
81 |
DROP TABLE `sPQ`; |