mariadb/mysql-test/suite/jp/t/jp_insert_sjis.test
serg@sergbook.mysql.com 77bc68f99d Many files:
Change mode to -rw-rw----
2005-01-07 14:32:05 +02:00

354 lines
15 KiB
Text
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.

--character_set sjis
--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 sjis encoding
#
SET NAMES sjis;
SET character_set_database = sjis;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = bdb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis engine = bdb;
CREATE TABLE `` (`` char(5)) DEFAULT CHARSET = sjis 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 ``;