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

112 lines
4.0 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 LOCATE() function with Japanese characters in ujis encoding
#
SET NAMES ujis;
SET character_set_database = ujis;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = MEMORY;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = MEMORY;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis 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 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 ``;
#MEMORY
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 ``;