Added test data and test case files.

This commit is contained in:
shuichi@mysql.com 2005-01-07 00:32:31 -08:00
parent f520e72c72
commit 3b635f0e3f
3 changed files with 144 additions and 0 deletions

Binary file not shown.

View file

@ -0,0 +1,2 @@
ソ十表予構噂蚕申貼能暴禄曾箪兔喀媾彌拿杤

View file

@ -0,0 +1,142 @@
--source include/have_ujis.inc
--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 ``;
drop table if exists ``;
drop table if exists ``;
drop table if exists ``;
--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 = heap;
CREATE TABLE `b` (`` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `a` (`` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `b` (`` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `a` (`` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `b` (`` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `a` (`` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `b` (`` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `a` (`` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `b` (`` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `a` (`` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `b` (`` char(1) PRIMARY KEY) DEFAULT CHARSET = ujis engine = heap;
#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 ('龔');
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`.``);
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`;
DROP TABLE `a`;
DROP TABLE `b`;
DROP TABLE `a`;
DROP TABLE `b`;
DROP TABLE `a`;
DROP TABLE `b`;