polardbxengine/mysql-test/suite/jp/t/jp_replace_sjis.test

101 lines
3.7 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

--character_set sjis
--disable_warnings
drop table if exists ``;
drop table if exists ``;
drop table if exists ``;
drop table if exists ``;
drop table if exists ``;
drop table if exists ``;
drop table if exists ``;
drop table if exists ``;
drop table if exists ``;
--enable_warnings
#
# Test REPLACE() function with Japanese characters in sjis encoding
#
SET NAMES sjis;
SET character_set_database = sjis;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = MEMORY;
INSERT INTO `` VALUES ('アイウエオ');
INSERT INTO `` VALUES ('あいうえお');
INSERT INTO `` VALUES ('ソ十表予構');
INSERT INTO `` VALUES ('アイウエオ');
INSERT INTO `` VALUES ('あいうえお');
INSERT INTO `` VALUES ('ソ十表予構');
INSERT INTO `` VALUES ('アイウエオ');
INSERT INTO `` VALUES ('あいうえお');
INSERT INTO `` VALUES ('ソ十表予構');
#InnoDB
SELECT REPLACE(``,'ア','アア') FROM ``;
SELECT REPLACE(``,'イ','イイ') FROM ``;
SELECT REPLACE(``,'ウ','ウウ') FROM ``;
SELECT REPLACE(``,'エ','エエ') FROM ``;
SELECT REPLACE(``,'オ','オオ') FROM ``;
SELECT REPLACE(``,'あ','ああ') FROM ``;
SELECT REPLACE(``,'い','いい') FROM ``;
SELECT REPLACE(``,'う','うう') FROM ``;
SELECT REPLACE(``,'え','ええ') FROM ``;
SELECT REPLACE(``,'お','おお') FROM ``;
SELECT REPLACE(``,'ソ','ソソ') FROM ``;
SELECT REPLACE(``,'十','十十') FROM ``;
SELECT REPLACE(``,'表','表表') FROM ``;
SELECT REPLACE(``,'予','予予') FROM ``;
SELECT REPLACE(``,'構','構構') FROM ``;
#MyISAM
SELECT REPLACE(``,'ア','アア') FROM ``;
SELECT REPLACE(``,'イ','イイ') FROM ``;
SELECT REPLACE(``,'ウ','ウウ') FROM ``;
SELECT REPLACE(``,'エ','エエ') FROM ``;
SELECT REPLACE(``,'オ','オオ') FROM ``;
SELECT REPLACE(``,'あ','ああ') FROM ``;
SELECT REPLACE(``,'い','いい') FROM ``;
SELECT REPLACE(``,'う','うう') FROM ``;
SELECT REPLACE(``,'え','ええ') FROM ``;
SELECT REPLACE(``,'お','おお') FROM ``;
SELECT REPLACE(``,'ソ','ソソ') FROM ``;
SELECT REPLACE(``,'十','十十') FROM ``;
SELECT REPLACE(``,'表','表表') FROM ``;
SELECT REPLACE(``,'予','予予') FROM ``;
SELECT REPLACE(``,'構','構構') FROM ``;
#MEMORY
SELECT REPLACE(``,'ア','アア') FROM ``;
SELECT REPLACE(``,'イ','イイ') FROM ``;
SELECT REPLACE(``,'ウ','ウウ') FROM ``;
SELECT REPLACE(``,'エ','エエ') FROM ``;
SELECT REPLACE(``,'オ','オオ') FROM ``;
SELECT REPLACE(``,'あ','ああ') FROM ``;
SELECT REPLACE(``,'い','いい') FROM ``;
SELECT REPLACE(``,'う','うう') FROM ``;
SELECT REPLACE(``,'え','ええ') FROM ``;
SELECT REPLACE(``,'お','おお') FROM ``;
SELECT REPLACE(``,'ソ','ソソ') FROM ``;
SELECT REPLACE(``,'十','十十') FROM ``;
SELECT REPLACE(``,'表','表表') FROM ``;
SELECT REPLACE(``,'予','予予') FROM ``;
SELECT REPLACE(``,'構','構構') FROM ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;