mariadb/mysql-test/suite/jp/t/jp_join_ucs2.test
mleich@five.local.lan 464c2de70a Fix for
Bug#28563 Test suite "jp" fails completely
- The main goal of this fix is to make the "jp" suite runnable in general
  and to make it more robust for use in pushbuild under build team conditions.
- It was decided to fix the remaining heavy issues within the
  architecture of this test later
  (-> WL 4327 Redesign the 'jp' testsuite for build team testing conditions)
  Only the test jp_trim_sjis got some significant improvements of its
  architecture (Just as proof of concept for the other tests).
- Tests suffering from
     Bug 36597 Testsuite "jp": Suspicious results for some tests
               (unexpected result sets)
  were disabled
- *.opt files were used to avoid differences on OS (Windows) because of
  case sensitive tablenames within the tests
2008-05-15 18:01:13 +02:00

180 lines
8 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--source include/have_ucs2.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 table JOIN using Japanese characters
#
SET NAMES ujis;
SET character_set_database = ucs2;
SET collation_connection = ucs2_general_ci;
CREATE TABLE `£Ô£±a` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `£Ô£±b` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `£Ô£²a` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `£Ô£²b` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `£Ô£³a` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `£Ô£³b` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = innodb;
CREATE TABLE `£Ô£´a` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = MyISAM;
CREATE TABLE `£Ô£´b` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = MyISAM;
CREATE TABLE `£Ô£µa` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = MyISAM;
CREATE TABLE `£Ô£µb` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = MyISAM;
CREATE TABLE `£Ô£¶a` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = MyISAM;
CREATE TABLE `£Ô£¶b` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = MyISAM;
CREATE TABLE `£Ô£·a` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `£Ô£·b` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `£Ô£¸a` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `£Ô£¸b` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `£Ô£¹a` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `£Ô£¹b` (`£Ã£±` char(1) PRIMARY KEY) DEFAULT CHARSET = ucs2 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 ('<27>íÜ'),('<27>íÝ'),('<27>íÞ');
INSERT INTO `£Ô£³b` VALUES ('<27>íÜ');
INSERT INTO `£Ô£´a` VALUES ('Ž±'),('Ž¶'),('Ž»');
INSERT INTO `£Ô£´b` VALUES ('Ž±');
INSERT INTO `£Ô£µa` VALUES ('¤¢'),('¤«'),('¤µ');
INSERT INTO `£Ô£µb` VALUES ('¤¢');
INSERT INTO `£Ô£¶a` VALUES ('<27>íÜ'),('<27>íÝ'),('<27>íÞ');
INSERT INTO `£Ô£¶b` VALUES ('<27>íÜ');
INSERT INTO `£Ô£·a` VALUES ('Ž±'),('Ž¶'),('Ž»');
INSERT INTO `£Ô£·b` VALUES ('Ž±');
INSERT INTO `£Ô£¸a` VALUES ('¤¢'),('¤«'),('¤µ');
INSERT INTO `£Ô£¸b` VALUES ('¤¢');
INSERT INTO `£Ô£¹a` VALUES ('<27>íÜ'),('<27>íÝ'),('<27>íÞ');
INSERT INTO `£Ô£¹b` VALUES ('<27>íÜ');
#Test for innodb
SELECT * FROM `£Ô£±a` JOIN `£Ô£±b`;
SELECT * FROM `£Ô£±a` INNER JOIN `£Ô£±b`;
SELECT * FROM `£Ô£±a` JOIN `£Ô£±b` USING (`£Ã£±`);
SELECT * FROM `£Ô£±a` INNER JOIN `£Ô£±b` USING (`£Ã£±`);
SELECT * FROM `£Ô£±a` CROSS JOIN `£Ô£±b`;
SELECT * FROM `£Ô£±a` LEFT JOIN `£Ô£±b` USING (`£Ã£±`);
SELECT * FROM `£Ô£±a` LEFT JOIN `£Ô£±b` ON (`£Ô£±a`.`£Ã£±` = `£Ô£±b`.`£Ã£±`);
SELECT * FROM `£Ô£±b` RIGHT JOIN `£Ô£±a` USING (`£Ã£±`);
SELECT * FROM `£Ô£±b` RIGHT JOIN `£Ô£±a` ON (`£Ô£±a`.`£Ã£±` = `£Ô£±b`.`£Ã£±`);
SELECT * FROM `£Ô£²a` JOIN `£Ô£²b`;
SELECT * FROM `£Ô£²a` INNER JOIN `£Ô£²b`;
SELECT * FROM `£Ô£²a` JOIN `£Ô£²b` USING (`£Ã£±`);
SELECT * FROM `£Ô£²a` INNER JOIN `£Ô£²b` USING (`£Ã£±`);
SELECT * FROM `£Ô£²a` CROSS JOIN `£Ô£²b`;
SELECT * FROM `£Ô£²a` LEFT JOIN `£Ô£²b` USING (`£Ã£±`);
SELECT * FROM `£Ô£²a` LEFT JOIN `£Ô£²b` ON (`£Ô£²a`.`£Ã£±` = `£Ô£²b`.`£Ã£±`);
SELECT * FROM `£Ô£²b` RIGHT JOIN `£Ô£²a` USING (`£Ã£±`);
SELECT * FROM `£Ô£²b` RIGHT JOIN `£Ô£²a` ON (`£Ô£²a`.`£Ã£±` = `£Ô£²b`.`£Ã£±`);
SELECT * FROM `£Ô£³a` JOIN `£Ô£³b`;
SELECT * FROM `£Ô£³a` INNER JOIN `£Ô£³b`;
SELECT * FROM `£Ô£³a` JOIN `£Ô£³b` USING (`£Ã£±`);
SELECT * FROM `£Ô£³a` INNER JOIN `£Ô£³b` USING (`£Ã£±`);
SELECT * FROM `£Ô£³a` CROSS JOIN `£Ô£³b`;
SELECT * FROM `£Ô£³a` LEFT JOIN `£Ô£³b` USING (`£Ã£±`);
SELECT * FROM `£Ô£³a` LEFT JOIN `£Ô£³b` ON (`£Ô£³a`.`£Ã£±` = `£Ô£³b`.`£Ã£±`);
SELECT * FROM `£Ô£³b` RIGHT JOIN `£Ô£³a` USING (`£Ã£±`);
SELECT * FROM `£Ô£³b` RIGHT JOIN `£Ô£³a` ON (`£Ô£³a`.`£Ã£±` = `£Ô£³b`.`£Ã£±`);
#Test for myisam
SELECT * FROM `£Ô£´a` JOIN `£Ô£´b`;
SELECT * FROM `£Ô£´a` INNER JOIN `£Ô£´b`;
SELECT * FROM `£Ô£´a` JOIN `£Ô£´b` USING (`£Ã£±`);
SELECT * FROM `£Ô£´a` INNER JOIN `£Ô£´b` USING (`£Ã£±`);
SELECT * FROM `£Ô£´a` CROSS JOIN `£Ô£´b`;
SELECT * FROM `£Ô£´a` LEFT JOIN `£Ô£´b` USING (`£Ã£±`);
SELECT * FROM `£Ô£´a` LEFT JOIN `£Ô£´b` ON (`£Ô£´a`.`£Ã£±` = `£Ô£´b`.`£Ã£±`);
SELECT * FROM `£Ô£´b` RIGHT JOIN `£Ô£´a` USING (`£Ã£±`);
SELECT * FROM `£Ô£´b` RIGHT JOIN `£Ô£´a` ON (`£Ô£´a`.`£Ã£±` = `£Ô£´b`.`£Ã£±`);
SELECT * FROM `£Ô£µa` JOIN `£Ô£µb`;
SELECT * FROM `£Ô£µa` INNER JOIN `£Ô£µb`;
SELECT * FROM `£Ô£µa` JOIN `£Ô£µb` USING (`£Ã£±`);
SELECT * FROM `£Ô£µa` INNER JOIN `£Ô£µb` USING (`£Ã£±`);
SELECT * FROM `£Ô£µa` CROSS JOIN `£Ô£µb`;
SELECT * FROM `£Ô£µa` LEFT JOIN `£Ô£µb` USING (`£Ã£±`);
SELECT * FROM `£Ô£µa` LEFT JOIN `£Ô£µb` ON (`£Ô£µa`.`£Ã£±` = `£Ô£µb`.`£Ã£±`);
SELECT * FROM `£Ô£µb` RIGHT JOIN `£Ô£µa` USING (`£Ã£±`);
SELECT * FROM `£Ô£µb` RIGHT JOIN `£Ô£µa` ON (`£Ô£µa`.`£Ã£±` = `£Ô£µb`.`£Ã£±`);
SELECT * FROM `£Ô£¶a` JOIN `£Ô£¶b`;
SELECT * FROM `£Ô£¶a` INNER JOIN `£Ô£¶b`;
SELECT * FROM `£Ô£¶a` JOIN `£Ô£¶b` USING (`£Ã£±`);
SELECT * FROM `£Ô£¶a` INNER JOIN `£Ô£¶b` USING (`£Ã£±`);
SELECT * FROM `£Ô£¶a` CROSS JOIN `£Ô£¶b`;
SELECT * FROM `£Ô£¶a` LEFT JOIN `£Ô£¶b` USING (`£Ã£±`);
SELECT * FROM `£Ô£¶a` LEFT JOIN `£Ô£¶b` ON (`£Ô£¶a`.`£Ã£±` = `£Ô£¶b`.`£Ã£±`);
SELECT * FROM `£Ô£¶b` RIGHT JOIN `£Ô£¶a` USING (`£Ã£±`);
SELECT * FROM `£Ô£¶b` RIGHT JOIN `£Ô£¶a` ON (`£Ô£¶a`.`£Ã£±` = `£Ô£¶b`.`£Ã£±`);
#Test for MEMORY
SELECT * FROM `£Ô£·a` JOIN `£Ô£·b`;
SELECT * FROM `£Ô£·a` INNER JOIN `£Ô£·b`;
SELECT * FROM `£Ô£·a` JOIN `£Ô£·b` USING (`£Ã£±`);
SELECT * FROM `£Ô£·a` INNER JOIN `£Ô£·b` USING (`£Ã£±`);
SELECT * FROM `£Ô£·a` CROSS JOIN `£Ô£·b`;
SELECT * FROM `£Ô£·a` LEFT JOIN `£Ô£·b` USING (`£Ã£±`);
SELECT * FROM `£Ô£·a` LEFT JOIN `£Ô£·b` ON (`£Ô£·a`.`£Ã£±` = `£Ô£·b`.`£Ã£±`);
SELECT * FROM `£Ô£·b` RIGHT JOIN `£Ô£·a` USING (`£Ã£±`);
SELECT * FROM `£Ô£·b` RIGHT JOIN `£Ô£·a` ON (`£Ô£·a`.`£Ã£±` = `£Ô£·b`.`£Ã£±`);
SELECT * FROM `£Ô£¸a` JOIN `£Ô£¸b`;
SELECT * FROM `£Ô£¸a` INNER JOIN `£Ô£¸b`;
SELECT * FROM `£Ô£¸a` JOIN `£Ô£¸b` USING (`£Ã£±`);
SELECT * FROM `£Ô£¸a` INNER JOIN `£Ô£¸b` USING (`£Ã£±`);
SELECT * FROM `£Ô£¸a` CROSS JOIN `£Ô£¸b`;
SELECT * FROM `£Ô£¸a` LEFT JOIN `£Ô£¸b` USING (`£Ã£±`);
SELECT * FROM `£Ô£¸a` LEFT JOIN `£Ô£¸b` ON (`£Ô£¸a`.`£Ã£±` = `£Ô£¸b`.`£Ã£±`);
SELECT * FROM `£Ô£¸b` RIGHT JOIN `£Ô£¸a` USING (`£Ã£±`);
SELECT * FROM `£Ô£¸b` RIGHT JOIN `£Ô£¸a` ON (`£Ô£¸a`.`£Ã£±` = `£Ô£¸b`.`£Ã£±`);
SELECT * FROM `£Ô£¹a` JOIN `£Ô£¹b`;
SELECT * FROM `£Ô£¹a` INNER JOIN `£Ô£¹b`;
SELECT * FROM `£Ô£¹a` JOIN `£Ô£¹b` USING (`£Ã£±`);
SELECT * FROM `£Ô£¹a` INNER JOIN `£Ô£¹b` USING (`£Ã£±`);
SELECT * FROM `£Ô£¹a` CROSS JOIN `£Ô£¹b`;
SELECT * FROM `£Ô£¹a` LEFT JOIN `£Ô£¹b` USING (`£Ã£±`);
SELECT * FROM `£Ô£¹a` LEFT JOIN `£Ô£¹b` ON (`£Ô£¹a`.`£Ã£±` = `£Ô£¹b`.`£Ã£±`);
SELECT * FROM `£Ô£¹b` RIGHT JOIN `£Ô£¹a` USING (`£Ã£±`);
SELECT * FROM `£Ô£¹b` RIGHT JOIN `£Ô£¹a` ON (`£Ô£¹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`;