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

143 lines
6.1 KiB
Text
Raw Normal View History

--source include/have_ujis.inc
--disable_warnings
drop table if exists `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
drop table if exists `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
--enable_warnings
#
# Test RIGHT() function with Japanese character in ujis encoding
#
SET NAMES ujis;
SET character_set_database = ujis;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(5), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(5), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(5), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(5), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(5), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(5), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(5), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(5), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(5), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` (`<60>ã<EFBFBD>` char(5), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = bdb;
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` (`<60>ã<EFBFBD>` char(5), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = bdb;
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` (`<60>ã<EFBFBD>` char(5), INDEX(`<60>ã<EFBFBD>`)) DEFAULT CHARSET = ujis engine = bdb;
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD>'),('<27><>'),('');
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD>'),('<27><>'),('');
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><>܏<EFBFBD>ݏ<EFBFBD>ޏ<EFBFBD>ߏ<EFBFBD><DF8F>'),('<27><>܏<EFBFBD>ݏ<EFBFBD>ޏ<EFBFBD><DE8F>'),('<27><>܏<EFBFBD>ݏ<EFBFBD><DD8F>'),('<27><>܏<EFBFBD><DC8F>'),('<27><><EFBFBD>'),('');
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD>'),('<27><>'),('');
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD>'),('<27><>'),('');
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><>܏<EFBFBD>ݏ<EFBFBD>ޏ<EFBFBD>ߏ<EFBFBD><DF8F>'),('<27><>܏<EFBFBD>ݏ<EFBFBD>ޏ<EFBFBD><DE8F>'),('<27><>܏<EFBFBD>ݏ<EFBFBD><DD8F>'),('<27><>܏<EFBFBD><DC8F>'),('<27><><EFBFBD>'),('');
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD>'),('<27><>'),('');
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD>'),('<27><>'),('');
INSERT INTO `<60>ԣ<EFBFBD>` VALUES ('<27><>܏<EFBFBD>ݏ<EFBFBD>ޏ<EFBFBD>ߏ<EFBFBD><DF8F>'),('<27><>܏<EFBFBD>ݏ<EFBFBD>ޏ<EFBFBD><DE8F>'),('<27><>܏<EFBFBD>ݏ<EFBFBD><DD8F>'),('<27><>܏<EFBFBD><DC8F>'),('<27><><EFBFBD>'),('');
INSERT INTO `<60>ԣ<EFBFBD><D4A3><EFBFBD>` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD>'),('<27><>'),('');
INSERT INTO `<60>ԣ<EFBFBD><D4A3><EFBFBD>` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD>'),('<27><>'),('');
INSERT INTO `<60>ԣ<EFBFBD><D4A3><EFBFBD>` VALUES ('<27><>܏<EFBFBD>ݏ<EFBFBD>ޏ<EFBFBD>ߏ<EFBFBD><DF8F>'),('<27><>܏<EFBFBD>ݏ<EFBFBD>ޏ<EFBFBD><DE8F>'),('<27><>܏<EFBFBD>ݏ<EFBFBD><DD8F>'),('<27><>܏<EFBFBD><DC8F>'),('<27><><EFBFBD>'),('');
#InnoDB
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,0) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,1) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,2) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,3) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,4) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,5) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,0) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,1) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,2) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,3) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,4) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,5) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,0) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,1) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,2) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,3) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,4) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,5) FROM `<60>ԣ<EFBFBD>`;
#MyISAM
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,0) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,1) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,2) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,3) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,4) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,5) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,0) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,1) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,2) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,3) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,4) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,5) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,0) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,1) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,2) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,3) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,4) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,5) FROM `<60>ԣ<EFBFBD>`;
#HEAP
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,0) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,1) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,2) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,3) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,4) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,5) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,0) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,1) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,2) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,3) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,4) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,5) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,0) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,1) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,2) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,3) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,4) FROM `<60>ԣ<EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,5) FROM `<60>ԣ<EFBFBD>`;
#BDB
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,0) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,1) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,2) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,3) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,4) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,5) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,0) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,1) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,2) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,3) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,4) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,5) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,0) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,1) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,2) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,3) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,4) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
SELECT `<60>ã<EFBFBD>`, RIGHT(`<60>ã<EFBFBD>`,5) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
DROP TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;