polardbxengine/mysql-test/suite/jp/t/jp_rpad_ujis.test

65 lines
2.7 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

--character_set ujis
--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 ``;
--enable_warnings
#
# Test RPAD() function with Japanese character in ujis encoding
#
SET NAMES ujis;
SET character_set_database = ujis;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = MEMORY;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = MEMORY;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = MEMORY;
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 ``, RPAD(``,5,'。') FROM ``;
SELECT ``, RPAD(``,5,'') FROM ``;
SELECT ``, RPAD(``,5,'丄') FROM ``;
#MyISAM
SELECT ``, RPAD(``,5,'。') FROM ``;
SELECT ``, RPAD(``,5,'') FROM ``;
SELECT ``, RPAD(``,5,'丄' ) FROM ``;
#MEMORY
SELECT ``, RPAD(``,5,'。') FROM ``;
SELECT ``, RPAD(``,5,'') FROM ``;
SELECT ``, RPAD(``,5,'丄' ) FROM ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;