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

111 lines
3.9 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 ujis
--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 ucs2 encoding
#
SET NAMES ujis;
SET character_set_database = ucs2;
SET collation_connection = ucs2_general_ci;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ucs2 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 ``;