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

65 lines
2.1 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 REVERSE() 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 REVERSE(``) FROM ``;
SELECT REVERSE(``) FROM ``;
SELECT REVERSE(``) FROM ``;
#MyISAM
SELECT REVERSE(``) FROM ``;
SELECT REVERSE(``) FROM ``;
SELECT REVERSE(``) FROM ``;
#MEMORY
SELECT REVERSE(``) FROM ``;
SELECT REVERSE(``) FROM ``;
SELECT REVERSE(``) FROM ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;