mariadb/mysql-test/suite/jp/t/jp_insert_utf8.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

353 lines
17 KiB
Text
Executable file
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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