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

168 lines
9.8 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.

--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 LIKE pattern matching using Japanese characters in utf8 encoding
#
SET NAMES utf8;
SET character_set_database = utf8;
CREATE TABLE `` (`` char(20), INDEX(``)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (`` char(20), INDEX(``)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (`` char(20), INDEX(``)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (`` char(20), INDEX(``)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (`` char(20), INDEX(``)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (`` char(20), INDEX(``)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (`` char(20), INDEX(``)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `` (`` char(20), INDEX(``)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `` (`` char(20), INDEX(``)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `` (`` char(20), INDEX(``)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `` (`` char(20), INDEX(``)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `` (`` char(20), INDEX(``)) DEFAULT CHARSET = utf8 engine = bdb;
#Load the following data in each table
# jisx0201 hankaku-katakana data
# jisx0208 data
# jisx0212 supplemental character data
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_utf8.dat' INTO TABLE ``;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE ``;
#InnoDB
SELECT * FROM `` WHERE `` LIKE ' %';
SELECT * FROM `` WHERE `` LIKE '% %';
SELECT * FROM `` WHERE `` LIKE '% ';
SELECT * FROM `` WHERE `` LIKE 'タ%';
SELECT * FROM `` WHERE `` LIKE '%ラリ%';
SELECT * FROM `` WHERE `` LIKE '%ソ';
SELECT * FROM `` WHERE `` LIKE 'ーアイウエオカキクケコサシスセソ%';
SELECT * FROM `` WHERE `` LIKE '%ーアイウエオカキクケコサシスセソ%';
SELECT * FROM `` WHERE `` LIKE '%ーアイウエオカキクケコサシスセソ';
SELECT * FROM `` WHERE `` LIKE ' %';
SELECT * FROM `` WHERE `` LIKE '% %';
SELECT * FROM `` WHERE `` LIKE '% ';
SELECT * FROM `` WHERE `` LIKE 'と%';
SELECT * FROM `` WHERE `` LIKE '%あ%';
SELECT * FROM `` WHERE `` LIKE '%わ';
SELECT * FROM `` WHERE `` LIKE '・ぁあぃいぅうぇえぉおかがきぎくぐけげこ%';
SELECT * FROM `` WHERE `` LIKE '%・ぁあぃいぅうぇえぉおかがきぎくぐけげこ%';
SELECT * FROM `` WHERE `` LIKE '%・ぁあぃいぅうぇえぉおかがきぎくぐけげこ';
SELECT * FROM `` WHERE `` LIKE '鼫%';
SELECT * FROM `` WHERE `` LIKE '%鼺%';
SELECT * FROM `` WHERE `` LIKE '%齖';
SELECT * FROM `` WHERE `` LIKE '鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃齄齅齆齇齓齕齖%';
SELECT * FROM `` WHERE `` LIKE '%鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃齄齅齆齇齓齕齖%';
SELECT * FROM `` WHERE `` LIKE '%鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃齄齅齆齇齓齕齖';
#MyISAM
SELECT * FROM `` WHERE `` LIKE ' %';
SELECT * FROM `` WHERE `` LIKE '% %';
SELECT * FROM `` WHERE `` LIKE '% ';
SELECT * FROM `` WHERE `` LIKE 'タ%';
SELECT * FROM `` WHERE `` LIKE '%ラリ%';
SELECT * FROM `` WHERE `` LIKE '%ソ';
SELECT * FROM `` WHERE `` LIKE 'ーアイウエオカキクケコサシスセソ%';
SELECT * FROM `` WHERE `` LIKE '%ーアイウエオカキクケコサシスセソ%';
SELECT * FROM `` WHERE `` LIKE '%ーアイウエオカキクケコサシスセソ';
SELECT * FROM `` WHERE `` LIKE ' %';
SELECT * FROM `` WHERE `` LIKE '% %';
SELECT * FROM `` WHERE `` LIKE '% ';
SELECT * FROM `` WHERE `` LIKE 'と%';
SELECT * FROM `` WHERE `` LIKE '%あ%';
SELECT * FROM `` WHERE `` LIKE '%わ';
SELECT * FROM `` WHERE `` LIKE '・ぁあぃいぅうぇえぉおかがきぎくぐけげこ%';
SELECT * FROM `` WHERE `` LIKE '%・ぁあぃいぅうぇえぉおかがきぎくぐけげこ%';
SELECT * FROM `` WHERE `` LIKE '%・ぁあぃいぅうぇえぉおかがきぎくぐけげこ';
SELECT * FROM `` WHERE `` LIKE '鼫%';
SELECT * FROM `` WHERE `` LIKE '%鼺%';
SELECT * FROM `` WHERE `` LIKE '%齖';
SELECT * FROM `` WHERE `` LIKE '鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃齄齅齆齇齓齕齖%';
SELECT * FROM `` WHERE `` LIKE '%鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃齄齅齆齇齓齕齖%';
SELECT * FROM `` WHERE `` LIKE '%鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃齄齅齆齇齓齕齖';
#Heap
SELECT * FROM `` WHERE `` LIKE ' %';
SELECT * FROM `` WHERE `` LIKE '% %';
SELECT * FROM `` WHERE `` LIKE '% ';
SELECT * FROM `` WHERE `` LIKE 'タ%';
SELECT * FROM `` WHERE `` LIKE '%ラリ%';
SELECT * FROM `` WHERE `` LIKE '%ソ';
SELECT * FROM `` WHERE `` LIKE 'ーアイウエオカキクケコサシスセソ%';
SELECT * FROM `` WHERE `` LIKE '%ーアイウエオカキクケコサシスセソ%';
SELECT * FROM `` WHERE `` LIKE '%ーアイウエオカキクケコサシスセソ';
SELECT * FROM `` WHERE `` LIKE ' %';
SELECT * FROM `` WHERE `` LIKE '% %';
SELECT * FROM `` WHERE `` LIKE '% ';
SELECT * FROM `` WHERE `` LIKE 'と%';
SELECT * FROM `` WHERE `` LIKE '%あ%';
SELECT * FROM `` WHERE `` LIKE '%わ';
SELECT * FROM `` WHERE `` LIKE '・ぁあぃいぅうぇえぉおかがきぎくぐけげこ%';
SELECT * FROM `` WHERE `` LIKE '%・ぁあぃいぅうぇえぉおかがきぎくぐけげこ%';
SELECT * FROM `` WHERE `` LIKE '%・ぁあぃいぅうぇえぉおかがきぎくぐけげこ';
SELECT * FROM `` WHERE `` LIKE '鼫%';
SELECT * FROM `` WHERE `` LIKE '%鼺%';
SELECT * FROM `` WHERE `` LIKE '%齖';
SELECT * FROM `` WHERE `` LIKE '鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃齄齅齆齇齓齕齖%';
SELECT * FROM `` WHERE `` LIKE '%鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃齄齅齆齇齓齕齖%';
SELECT * FROM `` WHERE `` LIKE '%鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃齄齅齆齇齓齕齖';
#BDB
SELECT * FROM `` WHERE `` LIKE ' %';
SELECT * FROM `` WHERE `` LIKE '% %';
SELECT * FROM `` WHERE `` LIKE '% ';
SELECT * FROM `` WHERE `` LIKE 'タ%';
SELECT * FROM `` WHERE `` LIKE '%ラリ%';
SELECT * FROM `` WHERE `` LIKE '%ソ';
#SELECT * FROM `` WHERE `` LIKE 'ーアイウエオカキクケコサシスセソ%';
#SELECT * FROM `` WHERE `` LIKE '%ーアイウエオカキクケコサシスセソ%';
#SELECT * FROM `` WHERE `` LIKE '%ーアイウエオカキクケコサシスセソ';
SELECT * FROM `` WHERE `` LIKE ' %';
SELECT * FROM `` WHERE `` LIKE '% %';
SELECT * FROM `` WHERE `` LIKE '% ';
SELECT * FROM `` WHERE `` LIKE 'と%';
SELECT * FROM `` WHERE `` LIKE '%あ%';
SELECT * FROM `` WHERE `` LIKE '%わ';
#SELECT * FROM `` WHERE `` LIKE '・ぁあぃいぅうぇえぉおかがきぎくぐけげこ%';
#SELECT * FROM `` WHERE `` LIKE '%・ぁあぃいぅうぇえぉおかがきぎくぐけげこ%';
#SELECT * FROM `` WHERE `` LIKE '%・ぁあぃいぅうぇえぉおかがきぎくぐけげこ';
SELECT * FROM `` WHERE `` LIKE '鼫%';
SELECT * FROM `` WHERE `` LIKE '%鼺%';
SELECT * FROM `` WHERE `` LIKE '%齖';
#SELECT * FROM `` WHERE `` LIKE '鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃齄齅齆齇齓齕齖%';
#SELECT * FROM `` WHERE `` LIKE '%鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃齄齅齆齇齓齕齖%';
#SELECT * FROM `` WHERE `` LIKE '%鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃齄齅齆齇齓齕齖';
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;