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

141 lines
5.2 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.

--source include/have_ucs2.inc
--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 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 = heap;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ucs2 engine = heap;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ucs2 engine = heap;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ucs2 engine = bdb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ucs2 engine = bdb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ucs2 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 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 ``;
#HEAP
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 ``;
#BDB
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 ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;