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

102 lines
3.9 KiB
Plaintext
Raw 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 ujis
--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 ucs2 encoding
#
SET NAMES ujis;
SET character_set_database = ucs2;
SET collation_connection = ucs2_general_ci;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = ucs2 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 ``;