mariadb/mysql-test/suite/jp/t/jp_ltrim_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 LTRIM() 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 LTRIM(``) from ``;
SELECT LTRIM(``) from ``;
SELECT LTRIM(``) from ``;
#MyISAM
SELECT LTRIM(``) from ``;
SELECT LTRIM(``) from ``;
SELECT LTRIM(``) from ``;
#HEAP
SELECT LTRIM(``) from ``;
SELECT LTRIM(``) from ``;
SELECT LTRIM(``) from ``;
#BDB
SELECT LTRIM(``) from ``;
SELECT LTRIM(``) from ``;
SELECT LTRIM(``) 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 ``;