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_join_sjis.test |
--source include/have_sjis.inc --source include/have_innodb.inc --character_set sjis --disable_warnings DROP TABLE IF EXISTS `sPa`; DROP TABLE IF EXISTS `sPb`; DROP TABLE IF EXISTS `sQa`; DROP TABLE IF EXISTS `sQb`; DROP TABLE IF EXISTS `sRa`; DROP TABLE IF EXISTS `sRb`; DROP TABLE IF EXISTS `sSa`; DROP TABLE IF EXISTS `sSb`; DROP TABLE IF EXISTS `sTa`; DROP TABLE IF EXISTS `sTb`; DROP TABLE IF EXISTS `sUa`; DROP TABLE IF EXISTS `sUb`; DROP TABLE IF EXISTS `sVa`; DROP TABLE IF EXISTS `sVb`; DROP TABLE IF EXISTS `sWa`; DROP TABLE IF EXISTS `sWb`; DROP TABLE IF EXISTS `sXa`; DROP TABLE IF EXISTS `sXb`; --enable_warnings # # Test table JOIN using Japanese characters in sjis encoding # SET NAMES sjis; SET character_set_database = sjis; CREATE TABLE `sPa` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = innodb; CREATE TABLE `sPb` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = innodb; CREATE TABLE `sQa` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = innodb; CREATE TABLE `sQb` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = innodb; CREATE TABLE `sRa` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = innodb; CREATE TABLE `sRb` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = innodb; CREATE TABLE `sSa` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = myisam; CREATE TABLE `sSb` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = myisam; CREATE TABLE `sTa` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = myisam; CREATE TABLE `sTb` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = myisam; CREATE TABLE `sUa` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = myisam; CREATE TABLE `sUb` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = myisam; CREATE TABLE `sVa` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = MEMORY; CREATE TABLE `sVb` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = MEMORY; CREATE TABLE `sWa` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = MEMORY; CREATE TABLE `sWb` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = MEMORY; CREATE TABLE `sXa` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = MEMORY; CREATE TABLE `sXb` (`bP` char(1) PRIMARY KEY) DEFAULT CHARSET = sjis engine = MEMORY; #insert the following data in each table # jisx0201 hankaku-katakana data # jisx0208 data # jisx0212 supplemental character data INSERT INTO `sPa` VALUES (''),(''),(''); INSERT INTO `sPb` VALUES (''); INSERT INTO `sQa` VALUES (''),(''),(''); INSERT INTO `sQb` VALUES (''); INSERT INTO `sRa` VALUES ('\'),('\'),('\'); INSERT INTO `sRb` VALUES ('\'); INSERT INTO `sSa` VALUES (''),(''),(''); INSERT INTO `sSb` VALUES (''); INSERT INTO `sTa` VALUES (''),(''),(''); INSERT INTO `sTb` VALUES (''); INSERT INTO `sUa` VALUES ('\'),('\'),('\'); INSERT INTO `sUb` VALUES ('\'); INSERT INTO `sVa` VALUES (''),(''),(''); INSERT INTO `sVb` VALUES (''); INSERT INTO `sWa` VALUES (''),(''),(''); INSERT INTO `sWb` VALUES (''); INSERT INTO `sXa` VALUES ('\'),('\'),('\'); INSERT INTO `sXb` VALUES ('\'); #Test for innodb SELECT * FROM `sPa` JOIN `sPb`; SELECT * FROM `sPa` INNER JOIN `sPb`; SELECT * FROM `sPa` JOIN `sPb` USING (`bP`); SELECT * FROM `sPa` INNER JOIN `sPb` USING (`bP`); SELECT * FROM `sPa` CROSS JOIN `sPb`; SELECT * FROM `sPa` LEFT JOIN `sPb` USING (`bP`); SELECT * FROM `sPa` LEFT JOIN `sPb` ON (`sPa`.`bP` = `sPb`.`bP`); SELECT * FROM `sPb` RIGHT JOIN `sPa` USING (`bP`); SELECT * FROM `sPb` RIGHT JOIN `sPa` ON (`sPa`.`bP` = `sPb`.`bP`); SELECT * FROM `sQa` JOIN `sQb`; SELECT * FROM `sQa` INNER JOIN `sQb`; SELECT * FROM `sQa` JOIN `sQb` USING (`bP`); SELECT * FROM `sQa` INNER JOIN `sQb` USING (`bP`); SELECT * FROM `sQa` CROSS JOIN `sQb`; SELECT * FROM `sQa` LEFT JOIN `sQb` USING (`bP`); SELECT * FROM `sQa` LEFT JOIN `sQb` ON (`sQa`.`bP` = `sQb`.`bP`); SELECT * FROM `sQb` RIGHT JOIN `sQa` USING (`bP`); SELECT * FROM `sQb` RIGHT JOIN `sQa` ON (`sQa`.`bP` = `sQb`.`bP`); SELECT * FROM `sRa` JOIN `sRb`; SELECT * FROM `sRa` INNER JOIN `sRb`; SELECT * FROM `sRa` JOIN `sRb` USING (`bP`); SELECT * FROM `sRa` INNER JOIN `sRb` USING (`bP`); SELECT * FROM `sRa` CROSS JOIN `sRb`; SELECT * FROM `sRa` LEFT JOIN `sRb` USING (`bP`); SELECT * FROM `sRa` LEFT JOIN `sRb` ON (`sRa`.`bP` = `sRb`.`bP`); SELECT * FROM `sRb` RIGHT JOIN `sRa` USING (`bP`); SELECT * FROM `sRb` RIGHT JOIN `sRa` ON (`sRa`.`bP` = `sRb`.`bP`); #Test for myisam SELECT * FROM `sSa` JOIN `sSb`; SELECT * FROM `sSa` INNER JOIN `sSb`; SELECT * FROM `sSa` JOIN `sSb` USING (`bP`); SELECT * FROM `sSa` INNER JOIN `sSb` USING (`bP`); SELECT * FROM `sSa` CROSS JOIN `sSb`; SELECT * FROM `sSa` LEFT JOIN `sSb` USING (`bP`); SELECT * FROM `sSa` LEFT JOIN `sSb` ON (`sSa`.`bP` = `sSb`.`bP`); SELECT * FROM `sSb` RIGHT JOIN `sSa` USING (`bP`); SELECT * FROM `sSb` RIGHT JOIN `sSa` ON (`sSa`.`bP` = `sSb`.`bP`); SELECT * FROM `sTa` JOIN `sTb`; SELECT * FROM `sTa` INNER JOIN `sTb`; SELECT * FROM `sTa` JOIN `sTb` USING (`bP`); SELECT * FROM `sTa` INNER JOIN `sTb` USING (`bP`); SELECT * FROM `sTa` CROSS JOIN `sTb`; SELECT * FROM `sTa` LEFT JOIN `sTb` USING (`bP`); SELECT * FROM `sTa` LEFT JOIN `sTb` ON (`sTa`.`bP` = `sTb`.`bP`); SELECT * FROM `sTb` RIGHT JOIN `sTa` USING (`bP`); SELECT * FROM `sTb` RIGHT JOIN `sTa` ON (`sTa`.`bP` = `sTb`.`bP`); SELECT * FROM `sUa` JOIN `sUb`; SELECT * FROM `sUa` INNER JOIN `sUb`; SELECT * FROM `sUa` JOIN `sUb` USING (`bP`); SELECT * FROM `sUa` INNER JOIN `sUb` USING (`bP`); SELECT * FROM `sUa` CROSS JOIN `sUb`; SELECT * FROM `sUa` LEFT JOIN `sUb` USING (`bP`); SELECT * FROM `sUa` LEFT JOIN `sUb` ON (`sUa`.`bP` = `sUb`.`bP`); SELECT * FROM `sUb` RIGHT JOIN `sUa` USING (`bP`); SELECT * FROM `sUb` RIGHT JOIN `sUa` ON (`sUa`.`bP` = `sUb`.`bP`); #Test for MEMORY SELECT * FROM `sVa` JOIN `sVb`; SELECT * FROM `sVa` INNER JOIN `sVb`; SELECT * FROM `sVa` JOIN `sVb` USING (`bP`); SELECT * FROM `sVa` INNER JOIN `sVb` USING (`bP`); SELECT * FROM `sVa` CROSS JOIN `sVb`; SELECT * FROM `sVa` LEFT JOIN `sVb` USING (`bP`); SELECT * FROM `sVa` LEFT JOIN `sVb` ON (`sVa`.`bP` = `sVb`.`bP`); SELECT * FROM `sVb` RIGHT JOIN `sVa` USING (`bP`); SELECT * FROM `sVb` RIGHT JOIN `sVa` ON (`sVa`.`bP` = `sVb`.`bP`); SELECT * FROM `sWa` JOIN `sWb`; SELECT * FROM `sWa` INNER JOIN `sWb`; SELECT * FROM `sWa` JOIN `sWb` USING (`bP`); SELECT * FROM `sWa` INNER JOIN `sWb` USING (`bP`); SELECT * FROM `sWa` CROSS JOIN `sWb`; SELECT * FROM `sWa` LEFT JOIN `sWb` USING (`bP`); SELECT * FROM `sWa` LEFT JOIN `sWb` ON (`sWa`.`bP` = `sWb`.`bP`); SELECT * FROM `sWb` RIGHT JOIN `sWa` USING (`bP`); SELECT * FROM `sWb` RIGHT JOIN `sWa` ON (`sWa`.`bP` = `sWb`.`bP`); SELECT * FROM `sXa` JOIN `sXb`; SELECT * FROM `sXa` INNER JOIN `sXb`; SELECT * FROM `sXa` JOIN `sXb` USING (`bP`); SELECT * FROM `sXa` INNER JOIN `sXb` USING (`bP`); SELECT * FROM `sXa` CROSS JOIN `sXb`; SELECT * FROM `sXa` LEFT JOIN `sXb` USING (`bP`); SELECT * FROM `sXa` LEFT JOIN `sXb` ON (`sXa`.`bP` = `sXb`.`bP`); SELECT * FROM `sXb` RIGHT JOIN `sXa` USING (`bP`); SELECT * FROM `sXb` RIGHT JOIN `sXa` ON (`sXa`.`bP` = `sXb`.`bP`); DROP TABLE `sPa`; DROP TABLE `sPb`; DROP TABLE `sQa`; DROP TABLE `sQb`; DROP TABLE `sRa`; DROP TABLE `sRb`; DROP TABLE `sSa`; DROP TABLE `sSb`; DROP TABLE `sTa`; DROP TABLE `sTb`; DROP TABLE `sUa`; DROP TABLE `sUb`; DROP TABLE `sVa`; DROP TABLE `sVb`; DROP TABLE `sWa`; DROP TABLE `sWb`; DROP TABLE `sXa`; DROP TABLE `sXb`;