1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00
Files
mariadb/mysql-test/suite/jp/t/jp_replace_ucs2.test
Georgi Kodinov 24f103e39c Bug #45159 Part 1 : rejuvenate the jp test suite using normal run.
Updates the results of all the out-dated test suites and adds 
the special mysqltest command to enable innodb for the tests that need it.
2009-09-09 12:06:15 +03:00

134 lines
5.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- source include/have_innodb.inc
-- source include/have_bdb.inc
--source include/have_ucs2.inc
--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 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 = heap;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = ucs2 engine = heap;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = ucs2 engine = heap;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = ucs2 engine = bdb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = ucs2 engine = bdb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = ucs2 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 ``;