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

163 lines
7.3 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 ``;
--enable_warnings
#
# Test RTRIM() function with Japanese characters in utf8 encoding
#
SET NAMES utf8;
SET character_set_database = utf8;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `` (`` char(8), INDEX(``)) DEFAULT CHARSET = utf8 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 ``;