polardbxengine/mysql-test/suite/jp/t/jp_instr_sjis.test

110 lines
3.8 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

--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 ``;
--enable_warnings
#
# Test INSTR() 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 = MEMORY;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = sjis engine = MEMORY;
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 INSTR(``,'ア') from ``;
SELECT INSTR(``,'イ') from ``;
SELECT INSTR(``,'ウ') from ``;
SELECT INSTR(``,'エ') from ``;
SELECT INSTR(``,'オ') from ``;
SELECT INSTR(``,'ン') from ``;
SELECT INSTR(``,'あ') from ``;
SELECT INSTR(``,'い') from ``;
SELECT INSTR(``,'う') from ``;
SELECT INSTR(``,'え') from ``;
SELECT INSTR(``,'お') from ``;
SELECT INSTR(``,'ん') from ``;
SELECT INSTR(``,'ソ') from ``;
SELECT INSTR(``,'十') from ``;
SELECT INSTR(``,'表') from ``;
SELECT INSTR(``,'予') from ``;
SELECT INSTR(``,'構') from ``;
SELECT INSTR(``,'噂') from ``;
#MyISAM
SELECT INSTR(``,'ア') from ``;
SELECT INSTR(``,'イ') from ``;
SELECT INSTR(``,'ウ') from ``;
SELECT INSTR(``,'エ') from ``;
SELECT INSTR(``,'オ') from ``;
SELECT INSTR(``,'ン') from ``;
SELECT INSTR(``,'あ') from ``;
SELECT INSTR(``,'い') from ``;
SELECT INSTR(``,'う') from ``;
SELECT INSTR(``,'え') from ``;
SELECT INSTR(``,'お') from ``;
SELECT INSTR(``,'ん') from ``;
SELECT INSTR(``,'ソ') from ``;
SELECT INSTR(``,'十') from ``;
SELECT INSTR(``,'表') from ``;
SELECT INSTR(``,'予') from ``;
SELECT INSTR(``,'構') from ``;
SELECT INSTR(``,'噂') from ``;
#MEMORY
SELECT INSTR(``,'ア') from ``;
SELECT INSTR(``,'イ') from ``;
SELECT INSTR(``,'ウ') from ``;
SELECT INSTR(``,'エ') from ``;
SELECT INSTR(``,'オ') from ``;
SELECT INSTR(``,'ン') from ``;
SELECT INSTR(``,'あ') from ``;
SELECT INSTR(``,'い') from ``;
SELECT INSTR(``,'う') from ``;
SELECT INSTR(``,'え') from ``;
SELECT INSTR(``,'お') from ``;
SELECT INSTR(``,'ん') from ``;
SELECT INSTR(``,'ソ') from ``;
SELECT INSTR(``,'十') from ``;
SELECT INSTR(``,'表') from ``;
SELECT INSTR(``,'予') from ``;
SELECT INSTR(``,'構') from ``;
SELECT INSTR(``,'噂') from ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;