mariadb/mysql-test/suite/jp/t/jp_right_utf8.test
shuichi@mysql.com 18609a1e99 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

140 lines
6.8 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.

--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 RIGHT() function with Japanese character in utf8 encoding
#
SET NAMES utf8;
SET character_set_database = utf8;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 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 ``, RIGHT(``,0) FROM ``;
SELECT ``, RIGHT(``,1) FROM ``;
SELECT ``, RIGHT(``,2) FROM ``;
SELECT ``, RIGHT(``,3) FROM ``;
SELECT ``, RIGHT(``,4) FROM ``;
SELECT ``, RIGHT(``,5) FROM ``;
SELECT ``, RIGHT(``,0) FROM ``;
SELECT ``, RIGHT(``,1) FROM ``;
SELECT ``, RIGHT(``,2) FROM ``;
SELECT ``, RIGHT(``,3) FROM ``;
SELECT ``, RIGHT(``,4) FROM ``;
SELECT ``, RIGHT(``,5) FROM ``;
SELECT ``, RIGHT(``,0) FROM ``;
SELECT ``, RIGHT(``,1) FROM ``;
SELECT ``, RIGHT(``,2) FROM ``;
SELECT ``, RIGHT(``,3) FROM ``;
SELECT ``, RIGHT(``,4) FROM ``;
SELECT ``, RIGHT(``,5) FROM ``;
#MyISAM
SELECT ``, RIGHT(``,0) FROM ``;
SELECT ``, RIGHT(``,1) FROM ``;
SELECT ``, RIGHT(``,2) FROM ``;
SELECT ``, RIGHT(``,3) FROM ``;
SELECT ``, RIGHT(``,4) FROM ``;
SELECT ``, RIGHT(``,5) FROM ``;
SELECT ``, RIGHT(``,0) FROM ``;
SELECT ``, RIGHT(``,1) FROM ``;
SELECT ``, RIGHT(``,2) FROM ``;
SELECT ``, RIGHT(``,3) FROM ``;
SELECT ``, RIGHT(``,4) FROM ``;
SELECT ``, RIGHT(``,5) FROM ``;
SELECT ``, RIGHT(``,0) FROM ``;
SELECT ``, RIGHT(``,1) FROM ``;
SELECT ``, RIGHT(``,2) FROM ``;
SELECT ``, RIGHT(``,3) FROM ``;
SELECT ``, RIGHT(``,4) FROM ``;
SELECT ``, RIGHT(``,5) FROM ``;
#HEAP
SELECT ``, RIGHT(``,0) FROM ``;
SELECT ``, RIGHT(``,1) FROM ``;
SELECT ``, RIGHT(``,2) FROM ``;
SELECT ``, RIGHT(``,3) FROM ``;
SELECT ``, RIGHT(``,4) FROM ``;
SELECT ``, RIGHT(``,5) FROM ``;
SELECT ``, RIGHT(``,0) FROM ``;
SELECT ``, RIGHT(``,1) FROM ``;
SELECT ``, RIGHT(``,2) FROM ``;
SELECT ``, RIGHT(``,3) FROM ``;
SELECT ``, RIGHT(``,4) FROM ``;
SELECT ``, RIGHT(``,5) FROM ``;
SELECT ``, RIGHT(``,0) FROM ``;
SELECT ``, RIGHT(``,1) FROM ``;
SELECT ``, RIGHT(``,2) FROM ``;
SELECT ``, RIGHT(``,3) FROM ``;
SELECT ``, RIGHT(``,4) FROM ``;
SELECT ``, RIGHT(``,5) FROM ``;
#BDB
SELECT ``, RIGHT(``,0) FROM ``;
SELECT ``, RIGHT(``,1) FROM ``;
SELECT ``, RIGHT(``,2) FROM ``;
SELECT ``, RIGHT(``,3) FROM ``;
SELECT ``, RIGHT(``,4) FROM ``;
SELECT ``, RIGHT(``,5) FROM ``;
SELECT ``, RIGHT(``,0) FROM ``;
SELECT ``, RIGHT(``,1) FROM ``;
SELECT ``, RIGHT(``,2) FROM ``;
SELECT ``, RIGHT(``,3) FROM ``;
SELECT ``, RIGHT(``,4) FROM ``;
SELECT ``, RIGHT(``,5) FROM ``;
SELECT ``, RIGHT(``,0) FROM ``;
SELECT ``, RIGHT(``,1) FROM ``;
SELECT ``, RIGHT(``,2) FROM ``;
SELECT ``, RIGHT(``,3) FROM ``;
SELECT ``, RIGHT(``,4) FROM ``;
SELECT ``, RIGHT(``,5) 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 ``;