mariadb/mysql-test/suite/jp/t/jp_rtrim_ujis.test
unknown 888b665e6c Added test data, test case and test result files for Japanese characters test.
I have put the tests into a separate "suite", the first one actually.
Currently this can only be run by the Perl version of mysql-test-run
that is not quite finished. It should, or at least will, be able to
be run with the line

  ./mysql-test-run.pl --suite=jp
2005-01-07 00:48:38 -08:00

164 lines
6.6 KiB
Text
Executable file
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_ujis.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 ``;
--enable_warnings
#
# Test RTRIM() function with Japanese characters in ujis encoding
#
SET NAMES ujis;
SET character_set_database = ujis;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = ujis engine = bdb;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = ujis engine = bdb;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = ujis engine = bdb;
INSERT INTO `` VALUES ('アイウエオ');
INSERT INTO `` VALUES ('アイウエオ ');
INSERT INTO `` VALUES ('アイウエオ ');
INSERT INTO `` VALUES ('アイウエオ ');
# Double byte spaces are not supposed to be trimed
INSERT INTO `` VALUES ('アイウエオ ');
INSERT INTO `` VALUES ('アイウエオ  ');
INSERT INTO `` VALUES ('アイウエオ   ');
INSERT INTO `` VALUES ('あいうえお');
INSERT INTO `` VALUES ('あいうえお ');
INSERT INTO `` VALUES ('あいうえお ');
INSERT INTO `` VALUES ('あいうえお ');
# Double byte spaces are not supposed to be trimed
INSERT INTO `` VALUES ('あいうえお ');
INSERT INTO `` VALUES ('あいうえお  ');
INSERT INTO `` VALUES ('あいうえお   ');
INSERT INTO `` VALUES ('龔龖龗龞龡');
INSERT INTO `` VALUES ('龔龖龗龞龡 ');
INSERT INTO `` VALUES ('龔龖龗龞龡 ');
INSERT INTO `` VALUES ('龔龖龗龞龡 ');
# Double byte spaces are not supposed to be trimed
INSERT INTO `` VALUES ('龔龖龗龞龡 ');
INSERT INTO `` VALUES ('龔龖龗龞龡  ');
INSERT INTO `` VALUES ('龔龖龗龞龡   ');
INSERT INTO `` VALUES ('アイウエオ');
INSERT INTO `` VALUES ('アイウエオ ');
INSERT INTO `` VALUES ('アイウエオ ');
INSERT INTO `` VALUES ('アイウエオ ');
# Double byte spaces are not supposed to be trimed
INSERT INTO `` VALUES ('アイウエオ ');
INSERT INTO `` VALUES ('アイウエオ  ');
INSERT INTO `` VALUES ('アイウエオ   ');
INSERT INTO `` VALUES ('あいうえお');
INSERT INTO `` VALUES ('あいうえお ');
INSERT INTO `` VALUES ('あいうえお ');
INSERT INTO `` VALUES ('あいうえお ');
# Double byte spaces are not supposed to be trimed
INSERT INTO `` VALUES ('あいうえお ');
INSERT INTO `` VALUES ('あいうえお  ');
INSERT INTO `` VALUES ('あいうえお   ');
INSERT INTO `` VALUES ('龔龖龗龞龡');
INSERT INTO `` VALUES ('龔龖龗龞龡 ');
INSERT INTO `` VALUES ('龔龖龗龞龡 ');
INSERT INTO `` VALUES ('龔龖龗龞龡 ');
# Double byte spaces are not supposed to be trimed
INSERT INTO `` VALUES ('龔龖龗龞龡 ');
INSERT INTO `` VALUES ('龔龖龗龞龡  ');
INSERT INTO `` VALUES ('龔龖龗龞龡   ');
INSERT INTO `` VALUES ('アイウエオ');
INSERT INTO `` VALUES ('アイウエオ ');
INSERT INTO `` VALUES ('アイウエオ ');
INSERT INTO `` VALUES ('アイウエオ ');
# Double byte spaces are not supposed to be trimed
INSERT INTO `` VALUES ('アイウエオ ');
INSERT INTO `` VALUES ('アイウエオ  ');
INSERT INTO `` VALUES ('アイウエオ   ');
INSERT INTO `` VALUES ('あいうえお');
INSERT INTO `` VALUES ('あいうえお ');
INSERT INTO `` VALUES ('あいうえお ');
INSERT INTO `` VALUES ('あいうえお ');
# Double byte spaces are not supposed to be trimed
INSERT INTO `` VALUES ('あいうえお ');
INSERT INTO `` VALUES ('あいうえお  ');
INSERT INTO `` VALUES ('あいうえお   ');
INSERT INTO `` VALUES ('龔龖龗龞龡');
INSERT INTO `` VALUES ('龔龖龗龞龡 ');
INSERT INTO `` VALUES ('龔龖龗龞龡 ');
INSERT INTO `` VALUES ('龔龖龗龞龡 ');
# Double byte spaces are not supposed to be trimed
INSERT INTO `` VALUES ('龔龖龗龞龡 ');
INSERT INTO `` VALUES ('龔龖龗龞龡  ');
INSERT INTO `` VALUES ('龔龖龗龞龡   ');
INSERT INTO `` VALUES ('アイウエオ');
INSERT INTO `` VALUES ('アイウエオ ');
INSERT INTO `` VALUES ('アイウエオ ');
INSERT INTO `` VALUES ('アイウエオ ');
# Double byte spaces are not supposed to be trimed
INSERT INTO `` VALUES ('アイウエオ ');
INSERT INTO `` VALUES ('アイウエオ  ');
INSERT INTO `` VALUES ('アイウエオ   ');
INSERT INTO `` VALUES ('あいうえお');
INSERT INTO `` VALUES ('あいうえお ');
INSERT INTO `` VALUES ('あいうえお ');
INSERT INTO `` VALUES ('あいうえお ');
# Double byte spaces are not supposed to be trimed
INSERT INTO `` VALUES ('あいうえお ');
INSERT INTO `` VALUES ('あいうえお  ');
INSERT INTO `` VALUES ('あいうえお   ');
INSERT INTO `` VALUES ('龔龖龗龞龡');
INSERT INTO `` VALUES ('龔龖龗龞龡 ');
INSERT INTO `` VALUES ('龔龖龗龞龡 ');
INSERT INTO `` VALUES ('龔龖龗龞龡 ');
# Double byte spaces are not supposed to be trimed
INSERT INTO `` VALUES ('龔龖龗龞龡 ');
INSERT INTO `` VALUES ('龔龖龗龞龡  ');
INSERT INTO `` VALUES ('龔龖龗龞龡   ');
#InnoDB
SELECT RTRIM(``) from ``;
SELECT RTRIM(``) from ``;
SELECT RTRIM(``) from ``;
#MyISAM
SELECT RTRIM(``) from ``;
SELECT RTRIM(``) from ``;
SELECT RTRIM(``) from ``;
#HEAP
SELECT RTRIM(``) from ``;
SELECT RTRIM(``) from ``;
SELECT RTRIM(``) from ``;
#BDB
SELECT RTRIM(``) from ``;
SELECT RTRIM(``) from ``;
SELECT RTRIM(``) 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 ``;