mariadb/mysql-test/suite/jp/t/jp_replace_utf8.test

129 lines
5.6 KiB
Text
Raw Normal View History

--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 ``;
drop table if exists ``;
drop table if exists ``;
drop table if exists ``;
--enable_warnings
#
# Test REPLACE() function with Japanese characters in utf8 encoding
#
SET NAMES utf8;
SET character_set_database = utf8;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = utf8 engine = bdb;
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 ('龔龖龗龞龡');
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 ``;
#HEAP
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 ``;
#BDB
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 ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;