mariadb/mysql-test/suite/jp/t/jp_locate_utf8.test

142 lines
5.7 KiB
Text
Raw Normal View History

--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 utf8 encoding
#
SET NAMES utf8;
SET character_set_database = utf8;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = utf8 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 ``;