Current Path : /home/usr.opt/mysql57/mysql-test/suite/jp/t/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/jp/t/jp_subquery_ujis.test |
--source include/have_ujis.inc --source include/have_innodb.inc --disable_warnings DROP TABLE IF EXISTS `」ヤ」アa`; DROP TABLE IF EXISTS `」ヤ」アb`; DROP TABLE IF EXISTS `」ヤ」イa`; DROP TABLE IF EXISTS `」ヤ」イb`; DROP TABLE IF EXISTS `」ヤ」ウa`; DROP TABLE IF EXISTS `」ヤ」ウb`; DROP TABLE IF EXISTS `」ヤ」エa`; DROP TABLE IF EXISTS `」ヤ」エb`; DROP TABLE IF EXISTS `」ヤ」オa`; DROP TABLE IF EXISTS `」ヤ」オb`; DROP TABLE IF EXISTS `」ヤ」カa`; DROP TABLE IF EXISTS `」ヤ」カb`; DROP TABLE IF EXISTS `」ヤ」キa`; DROP TABLE IF EXISTS `」ヤ」キb`; DROP TABLE IF EXISTS `」ヤ」クa`; DROP TABLE IF EXISTS `」ヤ」クb`; DROP TABLE IF EXISTS `」ヤ」ケa`; DROP TABLE IF EXISTS `」ヤ」ケb`; --enable_warnings # # Test subquery using Japanese characters in ujis encoding # SET NAMES ujis; SET character_set_database = ujis; CREATE TABLE `」ヤ」アa` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb; CREATE TABLE `」ヤ」アb` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb; CREATE TABLE `」ヤ」イa` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb; CREATE TABLE `」ヤ」イb` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb; CREATE TABLE `」ヤ」ウa` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb; CREATE TABLE `」ヤ」ウb` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = innodb; CREATE TABLE `」ヤ」エa` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = myisam; CREATE TABLE `」ヤ」エb` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = myisam; CREATE TABLE `」ヤ」オa` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = myisam; CREATE TABLE `」ヤ」オb` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = myisam; CREATE TABLE `」ヤ」カa` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = myisam; CREATE TABLE `」ヤ」カb` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = myisam; CREATE TABLE `」ヤ」キa` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = MEMORY; CREATE TABLE `」ヤ」キb` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = MEMORY; CREATE TABLE `」ヤ」クa` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = MEMORY; CREATE TABLE `」ヤ」クb` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = MEMORY; CREATE TABLE `」ヤ」ケa` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = MEMORY; CREATE TABLE `」ヤ」ケb` (`」テ」ア` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = MEMORY; #insert the following data in each table # jisx0201 hankaku-katakana data # jisx0208 data # jisx0212 supplemental character data INSERT INTO `」ヤ」アa` VALUES ('竺'),('叱'),('悉'); INSERT INTO `」ヤ」アb` VALUES ('竺'); INSERT INTO `」ヤ」イa` VALUES ('、「'),('、ォ'),('、オ'); INSERT INTO `」ヤ」イb` VALUES ('、「'); INSERT INTO `」ヤ」ウa` VALUES ('常ワ'),('常ン'),('常゙'); INSERT INTO `」ヤ」ウb` VALUES ('常ワ'); INSERT INTO `」ヤ」エa` VALUES ('竺'),('叱'),('悉'); INSERT INTO `」ヤ」エb` VALUES ('竺'); INSERT INTO `」ヤ」オa` VALUES ('、「'),('、ォ'),('、オ'); INSERT INTO `」ヤ」オb` VALUES ('、「'); INSERT INTO `」ヤ」カa` VALUES ('常ワ'),('常ン'),('常゙'); INSERT INTO `」ヤ」カb` VALUES ('常ワ'); INSERT INTO `」ヤ」キa` VALUES ('竺'),('叱'),('悉'); INSERT INTO `」ヤ」キb` VALUES ('竺'); INSERT INTO `」ヤ」クa` VALUES ('、「'),('、ォ'),('、オ'); INSERT INTO `」ヤ」クb` VALUES ('、「'); INSERT INTO `」ヤ」ケa` VALUES ('常ワ'),('常ン'),('常゙'); INSERT INTO `」ヤ」ケb` VALUES ('常ワ'); #Test for innodb SELECT `」テ」ア` FROM `」ヤ」アa` WHERE `」テ」ア` IN (SELECT `」テ」ア` FROM `」ヤ」アb`); SELECT `」テ」ア` FROM `」ヤ」アa` WHERE EXISTS (SELECT `」テ」ア` FROM `」ヤ」アb` WHERE `」ヤ」アa`.`」テ」ア` = `」ヤ」アb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」アa` WHERE NOT EXISTS (SELECT `」テ」ア` FROM `」ヤ」アb` WHERE `」ヤ」アa`.`」テ」ア` = `」ヤ」アb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」イa` WHERE `」テ」ア` IN (SELECT `」テ」ア` FROM `」ヤ」イb`); SELECT `」テ」ア` FROM `」ヤ」イa` WHERE EXISTS (SELECT `」テ」ア` FROM `」ヤ」イb` WHERE `」ヤ」イa`.`」テ」ア` = `」ヤ」イb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」イa` WHERE NOT EXISTS (SELECT `」テ」ア` FROM `」ヤ」イb` WHERE `」ヤ」イa`.`」テ」ア` = `」ヤ」イb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」ウa` WHERE `」テ」ア` IN (SELECT `」テ」ア` FROM `」ヤ」ウb`); SELECT `」テ」ア` FROM `」ヤ」ウa` WHERE EXISTS (SELECT `」テ」ア` FROM `」ヤ」ウb` WHERE `」ヤ」ウa`.`」テ」ア` = `」ヤ」ウb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」ウa` WHERE NOT EXISTS (SELECT `」テ」ア` FROM `」ヤ」ウb` WHERE `」ヤ」ウa`.`」テ」ア` = `」ヤ」ウb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」エa` WHERE `」テ」ア` IN (SELECT `」テ」ア` FROM `」ヤ」エb`); SELECT `」テ」ア` FROM `」ヤ」エa` WHERE EXISTS (SELECT `」テ」ア` FROM `」ヤ」エb` WHERE `」ヤ」エa`.`」テ」ア` = `」ヤ」エb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」エa` WHERE NOT EXISTS (SELECT `」テ」ア` FROM `」ヤ」エb` WHERE `」ヤ」エa`.`」テ」ア` = `」ヤ」エb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」オa` WHERE `」テ」ア` IN (SELECT `」テ」ア` FROM `」ヤ」オb`); SELECT `」テ」ア` FROM `」ヤ」オa` WHERE EXISTS (SELECT `」テ」ア` FROM `」ヤ」オb` WHERE `」ヤ」オa`.`」テ」ア` = `」ヤ」オb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」オa` WHERE NOT EXISTS (SELECT `」テ」ア` FROM `」ヤ」オb` WHERE `」ヤ」オa`.`」テ」ア` = `」ヤ」オb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」カa` WHERE `」テ」ア` IN (SELECT `」テ」ア` FROM `」ヤ」カb`); SELECT `」テ」ア` FROM `」ヤ」カa` WHERE EXISTS (SELECT `」テ」ア` FROM `」ヤ」カb` WHERE `」ヤ」カa`.`」テ」ア` = `」ヤ」カb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」カa` WHERE NOT EXISTS (SELECT `」テ」ア` FROM `」ヤ」カb` WHERE `」ヤ」カa`.`」テ」ア` = `」ヤ」カb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」キa` WHERE `」テ」ア` IN (SELECT `」テ」ア` FROM `」ヤ」キb`); SELECT `」テ」ア` FROM `」ヤ」キa` WHERE EXISTS (SELECT `」テ」ア` FROM `」ヤ」キb` WHERE `」ヤ」キa`.`」テ」ア` = `」ヤ」キb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」キa` WHERE NOT EXISTS (SELECT `」テ」ア` FROM `」ヤ」キb` WHERE `」ヤ」キa`.`」テ」ア` = `」ヤ」キb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」クa` WHERE `」テ」ア` IN (SELECT `」テ」ア` FROM `」ヤ」クb`); SELECT `」テ」ア` FROM `」ヤ」クa` WHERE EXISTS (SELECT `」テ」ア` FROM `」ヤ」クb` WHERE `」ヤ」クa`.`」テ」ア` = `」ヤ」クb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」クa` WHERE NOT EXISTS (SELECT `」テ」ア` FROM `」ヤ」クb` WHERE `」ヤ」クa`.`」テ」ア` = `」ヤ」クb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」ケa` WHERE `」テ」ア` IN (SELECT `」テ」ア` FROM `」ヤ」ケb`); SELECT `」テ」ア` FROM `」ヤ」ケa` WHERE EXISTS (SELECT `」テ」ア` FROM `」ヤ」ケb` WHERE `」ヤ」ケa`.`」テ」ア` = `」ヤ」ケb`.`」テ」ア`); SELECT `」テ」ア` FROM `」ヤ」ケa` WHERE NOT EXISTS (SELECT `」テ」ア` FROM `」ヤ」ケb` WHERE `」ヤ」ケa`.`」テ」ア` = `」ヤ」ケb`.`」テ」ア`); DROP TABLE `」ヤ」アa`; DROP TABLE `」ヤ」アb`; DROP TABLE `」ヤ」イa`; DROP TABLE `」ヤ」イb`; DROP TABLE `」ヤ」ウa`; DROP TABLE `」ヤ」ウb`; DROP TABLE `」ヤ」エa`; DROP TABLE `」ヤ」エb`; DROP TABLE `」ヤ」オa`; DROP TABLE `」ヤ」オb`; DROP TABLE `」ヤ」カa`; DROP TABLE `」ヤ」カb`; DROP TABLE `」ヤ」キa`; DROP TABLE `」ヤ」キb`; DROP TABLE `」ヤ」クa`; DROP TABLE `」ヤ」クb`; DROP TABLE `」ヤ」ケa`; DROP TABLE `」ヤ」ケb`;