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

141 lines
5.1 KiB
Text
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.

--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 ``;
--enable_warnings
#
# Test LOCATE() function with Japanese characters in sjis encoding
#
SET NAMES sjis;
SET character_set_database = sjis;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = sjis engine = bdb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = sjis engine = bdb;
CREATE TABLE `` (`` char(5), INDEX(``)) 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 LOCATE('ア',``) from ``;
SELECT LOCATE('イ',``) from ``;
SELECT LOCATE('ウ',``) from ``;
SELECT LOCATE('エ',``) from ``;
SELECT LOCATE('オ',``) from ``;
SELECT LOCATE('ン',``) from ``;
SELECT LOCATE('あ',``) from ``;
SELECT LOCATE('い',``) from ``;
SELECT LOCATE('う',``) from ``;
SELECT LOCATE('え',``) from ``;
SELECT LOCATE('お',``) from ``;
SELECT LOCATE('ん',``) from ``;
SELECT LOCATE('ソ',``) from ``;
SELECT LOCATE('十',``) from ``;
SELECT LOCATE('表',``) from ``;
SELECT LOCATE('予',``) from ``;
SELECT LOCATE('構',``) from ``;
SELECT LOCATE('噂',``) from ``;
#MyISAM
SELECT LOCATE('ア',``) from ``;
SELECT LOCATE('イ',``) from ``;
SELECT LOCATE('ウ',``) from ``;
SELECT LOCATE('エ',``) from ``;
SELECT LOCATE('オ',``) from ``;
SELECT LOCATE('ン',``) from ``;
SELECT LOCATE('あ',``) from ``;
SELECT LOCATE('い',``) from ``;
SELECT LOCATE('う',``) from ``;
SELECT LOCATE('え',``) from ``;
SELECT LOCATE('お',``) from ``;
SELECT LOCATE('ん',``) from ``;
SELECT LOCATE('ソ',``) from ``;
SELECT LOCATE('十',``) from ``;
SELECT LOCATE('表',``) from ``;
SELECT LOCATE('予',``) from ``;
SELECT LOCATE('構',``) from ``;
SELECT LOCATE('噂',``) from ``;
#HEAP
SELECT LOCATE('ア',``) from ``;
SELECT LOCATE('イ',``) from ``;
SELECT LOCATE('ウ',``) from ``;
SELECT LOCATE('エ',``) from ``;
SELECT LOCATE('オ',``) from ``;
SELECT LOCATE('ン',``) from ``;
SELECT LOCATE('あ',``) from ``;
SELECT LOCATE('い',``) from ``;
SELECT LOCATE('う',``) from ``;
SELECT LOCATE('え',``) from ``;
SELECT LOCATE('お',``) from ``;
SELECT LOCATE('ん',``) from ``;
SELECT LOCATE('ソ',``) from ``;
SELECT LOCATE('十',``) from ``;
SELECT LOCATE('表',``) from ``;
SELECT LOCATE('予',``) from ``;
SELECT LOCATE('構',``) from ``;
SELECT LOCATE('噂',``) from ``;
#BDB
SELECT LOCATE('ア',``) from ``;
SELECT LOCATE('イ',``) from ``;
SELECT LOCATE('ウ',``) from ``;
SELECT LOCATE('エ',``) from ``;
SELECT LOCATE('オ',``) from ``;
SELECT LOCATE('ン',``) from ``;
SELECT LOCATE('あ',``) from ``;
SELECT LOCATE('い',``) from ``;
SELECT LOCATE('う',``) from ``;
SELECT LOCATE('え',``) from ``;
SELECT LOCATE('お',``) from ``;
SELECT LOCATE('ん',``) from ``;
SELECT LOCATE('ソ',``) from ``;
SELECT LOCATE('十',``) from ``;
SELECT LOCATE('表',``) from ``;
SELECT LOCATE('予',``) from ``;
SELECT LOCATE('構',``) from ``;
SELECT LOCATE('噂',``) 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 ``;