--source include/have_utf8.inc --source include/have_innodb.inc --disable_warnings drop table if exists `T1`; drop table if exists `T2`; drop table if exists `T3`; drop table if exists `T4`; drop table if exists `T5`; drop table if exists `T6`; drop table if exists `T7`; drop table if exists `T8`; drop table if exists `T9`; --enable_warnings # # Test subquery using Japanese characters in utf8 encoding # SET NAMES utf8; SET character_set_database = utf8; CREATE TABLE `T1a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = innodb; CREATE TABLE `T1b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = innodb; CREATE TABLE `T2a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = innodb; CREATE TABLE `T2b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = innodb; CREATE TABLE `T3a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = innodb; CREATE TABLE `T3b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = innodb; CREATE TABLE `T4a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = myisam; CREATE TABLE `T4b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = myisam; CREATE TABLE `T5a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = myisam; CREATE TABLE `T5b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = myisam; CREATE TABLE `T6a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = myisam; CREATE TABLE `T6b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = myisam; CREATE TABLE `T7a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MEMORY; CREATE TABLE `T7b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MEMORY; CREATE TABLE `T8a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MEMORY; CREATE TABLE `T8b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MEMORY; CREATE TABLE `T9a` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MEMORY; CREATE TABLE `T9b` (`C1` char(1) PRIMARY KEY) DEFAULT CHARSET = utf8 engine = MEMORY; #insert the following data in each table # jisx0201 hankaku-katakana data # jisx0208 data # jisx0212 supplemental character data INSERT INTO `T1a` VALUES ('ア'),('カ'),('サ'); INSERT INTO `T1b` VALUES ('ア'); INSERT INTO `T2a` VALUES ('あ'),('か'),('さ'); INSERT INTO `T2b` VALUES ('あ'); INSERT INTO `T3a` VALUES ('龔'),('龖'),('龗'); INSERT INTO `T3b` VALUES ('龔'); INSERT INTO `T4a` VALUES ('ア'),('カ'),('サ'); INSERT INTO `T4b` VALUES ('ア'); INSERT INTO `T5a` VALUES ('あ'),('か'),('さ'); INSERT INTO `T5b` VALUES ('あ'); INSERT INTO `T6a` VALUES ('龔'),('龖'),('龗'); INSERT INTO `T6b` VALUES ('龔'); INSERT INTO `T7a` VALUES ('ア'),('カ'),('サ'); INSERT INTO `T7b` VALUES ('ア'); INSERT INTO `T8a` VALUES ('あ'),('か'),('さ'); INSERT INTO `T8b` VALUES ('あ'); INSERT INTO `T9a` VALUES ('龔'),('龖'),('龗'); INSERT INTO `T9b` VALUES ('龔'); #Test for innodb SELECT `C1` FROM `T1a` WHERE `C1` IN (SELECT `C1` FROM `T1b`); SELECT `C1` FROM `T1a` WHERE EXISTS (SELECT `C1` FROM `T1b` WHERE `T1a`.`C1` = `T1b`.`C1`); SELECT `C1` FROM `T1a` WHERE NOT EXISTS (SELECT `C1` FROM `T1b` WHERE `T1a`.`C1` = `T1b`.`C1`); SELECT `C1` FROM `T2a` WHERE `C1` IN (SELECT `C1` FROM `T2b`); SELECT `C1` FROM `T2a` WHERE EXISTS (SELECT `C1` FROM `T2b` WHERE `T2a`.`C1` = `T2b`.`C1`); SELECT `C1` FROM `T2a` WHERE NOT EXISTS (SELECT `C1` FROM `T2b` WHERE `T2a`.`C1` = `T2b`.`C1`); SELECT `C1` FROM `T3a` WHERE `C1` IN (SELECT `C1` FROM `T3b`); SELECT `C1` FROM `T3a` WHERE EXISTS (SELECT `C1` FROM `T3b` WHERE `T3a`.`C1` = `T3b`.`C1`); SELECT `C1` FROM `T3a` WHERE NOT EXISTS (SELECT `C1` FROM `T3b` WHERE `T3a`.`C1` = `T3b`.`C1`); #Test for myisam SELECT `C1` FROM `T4a` WHERE `C1` IN (SELECT `C1` FROM `T4b`); SELECT `C1` FROM `T4a` WHERE EXISTS (SELECT `C1` FROM `T4b` WHERE `T4a`.`C1` = `T4b`.`C1`); SELECT `C1` FROM `T4a` WHERE NOT EXISTS (SELECT `C1` FROM `T4b` WHERE `T4a`.`C1` = `T4b`.`C1`); SELECT `C1` FROM `T5a` WHERE `C1` IN (SELECT `C1` FROM `T5b`); SELECT `C1` FROM `T5a` WHERE EXISTS (SELECT `C1` FROM `T5b` WHERE `T5a`.`C1` = `T5b`.`C1`); SELECT `C1` FROM `T5a` WHERE NOT EXISTS (SELECT `C1` FROM `T5b` WHERE `T5a`.`C1` = `T5b`.`C1`); SELECT `C1` FROM `T6a` WHERE `C1` IN (SELECT `C1` FROM `T6b`); SELECT `C1` FROM `T6a` WHERE EXISTS (SELECT `C1` FROM `T6b` WHERE `T6a`.`C1` = `T6b`.`C1`); SELECT `C1` FROM `T6a` WHERE NOT EXISTS (SELECT `C1` FROM `T6b` WHERE `T6a`.`C1` = `T6b`.`C1`); #Test for memory SELECT `C1` FROM `T7a` WHERE `C1` IN (SELECT `C1` FROM `T7b`); SELECT `C1` FROM `T7a` WHERE EXISTS (SELECT `C1` FROM `T7b` WHERE `T7a`.`C1` = `T7b`.`C1`); SELECT `C1` FROM `T7a` WHERE NOT EXISTS (SELECT `C1` FROM `T7b` WHERE `T7a`.`C1` = `T7b`.`C1`); SELECT `C1` FROM `T8a` WHERE `C1` IN (SELECT `C1` FROM `T8b`); SELECT `C1` FROM `T8a` WHERE EXISTS (SELECT `C1` FROM `T8b` WHERE `T8a`.`C1` = `T8b`.`C1`); SELECT `C1` FROM `T8a` WHERE NOT EXISTS (SELECT `C1` FROM `T8b` WHERE `T8a`.`C1` = `T8b`.`C1`); SELECT `C1` FROM `T9a` WHERE `C1` IN (SELECT `C1` FROM `T9b`); SELECT `C1` FROM `T9a` WHERE EXISTS (SELECT `C1` FROM `T9b` WHERE `T9a`.`C1` = `T9b`.`C1`); SELECT `C1` FROM `T9a` WHERE NOT EXISTS (SELECT `C1` FROM `T9b` WHERE `T9a`.`C1` = `T9b`.`C1`); DROP TABLE `T1a`; DROP TABLE `T1b`; DROP TABLE `T2a`; DROP TABLE `T2b`; DROP TABLE `T3a`; DROP TABLE `T3b`; DROP TABLE `T4a`; DROP TABLE `T4b`; DROP TABLE `T5a`; DROP TABLE `T5b`; DROP TABLE `T6a`; DROP TABLE `T6b`; DROP TABLE `T7a`; DROP TABLE `T7b`; DROP TABLE `T8a`; DROP TABLE `T8b`; DROP TABLE `T9a`; DROP TABLE `T9b`;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
disabled.def | File | 404 B | 0644 |
|
jp_alter_sjis.test | File | 10.37 KB | 0644 |
|
jp_alter_ucs2.test | File | 11.33 KB | 0644 |
|
jp_alter_ujis.test | File | 11.28 KB | 0644 |
|
jp_alter_utf8.test | File | 12.21 KB | 0644 |
|
jp_charlength_sjis.test | File | 2.65 KB | 0644 |
|
jp_charlength_ucs2.test | File | 2.76 KB | 0644 |
|
jp_charlength_ujis.test | File | 2.71 KB | 0644 |
|
jp_charlength_utf8.test | File | 2.96 KB | 0644 |
|
jp_charset_sjis.test | File | 4.95 KB | 0644 |
|
jp_charset_ucs2.test | File | 7.27 KB | 0644 |
|
jp_charset_ujis.test | File | 4.97 KB | 0644 |
|
jp_charset_utf8.test | File | 5.23 KB | 0644 |
|
jp_convert_sjis.test | File | 3.89 KB | 0644 |
|
jp_convert_ucs2.test | File | 6.42 KB | 0644 |
|
jp_convert_ujis.test | File | 4.08 KB | 0644 |
|
jp_convert_utf8.test | File | 4.34 KB | 0644 |
|
jp_create_db_sjis.test | File | 597 B | 0644 |
|
jp_create_db_ucs2.test | File | 643 B | 0644 |
|
jp_create_db_ujis.test | File | 610 B | 0644 |
|
jp_create_db_utf8.test | File | 641 B | 0644 |
|
jp_create_tbl_sjis.test | File | 8.77 KB | 0644 |
|
jp_create_tbl_ucs2.test | File | 9.35 KB | 0644 |
|
jp_create_tbl_ujis.test | File | 9.35 KB | 0644 |
|
jp_create_tbl_utf8.test | File | 9.89 KB | 0644 |
|
jp_enum_sjis.test | File | 3.94 KB | 0644 |
|
jp_enum_ucs2.test | File | 3.89 KB | 0644 |
|
jp_enum_ujis.test | File | 3.68 KB | 0644 |
|
jp_enum_utf8.test | File | 3.94 KB | 0644 |
|
jp_insert_sjis.test | File | 11.8 KB | 0644 |
|
jp_insert_ucs2.test | File | 12.06 KB | 0644 |
|
jp_insert_ujis.test | File | 12.06 KB | 0644 |
|
jp_insert_utf8.test | File | 13.32 KB | 0644 |
|
jp_instr_sjis.test | File | 3.89 KB | 0644 |
|
jp_instr_ucs2.test | File | 3.98 KB | 0644 |
|
jp_instr_ujis.test | File | 3.94 KB | 0644 |
|
jp_instr_utf8.test | File | 4.32 KB | 0644 |
|
jp_join_sjis.test | File | 7.98 KB | 0644 |
|
jp_join_ucs2.test | File | 8.01 KB | 0644 |
|
jp_join_ujis.test | File | 7.97 KB | 0644 |
|
jp_join_utf8.test | File | 8.7 KB | 0644 |
|
jp_left_sjis.test | File | 4.49 KB | 0644 |
|
jp_left_ucs2.test | File | 4.6 KB | 0644 |
|
jp_left_ujis.test | File | 4.55 KB | 0644 |
|
jp_left_utf8.test | File | 5.06 KB | 0644 |
|
jp_length_sjis.test | File | 2.6 KB | 0644 |
|
jp_length_ucs2.test | File | 2.71 KB | 0644 |
|
jp_length_ujis.test | File | 2.67 KB | 0644 |
|
jp_length_utf8.test | File | 2.91 KB | 0644 |
|
jp_like_sjis.test | File | 6.31 KB | 0644 |
|
jp_like_ucs2.test | File | 9.45 KB | 0644 |
|
jp_like_ujis.test | File | 6.69 KB | 0644 |
|
jp_like_utf8.test | File | 7.42 KB | 0644 |
|
jp_locate_sjis.test | File | 3.95 KB | 0644 |
|
jp_locate_ucs2.test | File | 4.04 KB | 0644 |
|
jp_locate_ujis.test | File | 3.99 KB | 0644 |
|
jp_locate_utf8.test | File | 4.37 KB | 0644 |
|
jp_lpad_sjis.test | File | 2.64 KB | 0644 |
|
jp_lpad_ucs2.test | File | 2.76 KB | 0644 |
|
jp_lpad_ujis.test | File | 2.71 KB | 0644 |
|
jp_lpad_utf8.test | File | 2.96 KB | 0644 |
|
jp_ltrim_sjis.test | File | 4.89 KB | 0644 |
|
jp_ltrim_ucs2.test | File | 5.11 KB | 0644 |
|
jp_ltrim_ujis.test | File | 5.07 KB | 0644 |
|
jp_ltrim_utf8.test | File | 5.57 KB | 0644 |
|
jp_ps_sjis.test | File | 9.56 KB | 0644 |
|
jp_ps_ujis.test | File | 9.56 KB | 0644 |
|
jp_replace_sjis.test | File | 3.79 KB | 0644 |
|
jp_replace_ucs2.test | File | 3.93 KB | 0644 |
|
jp_replace_ujis.test | File | 3.89 KB | 0644 |
|
jp_replace_utf8.test | File | 4.27 KB | 0644 |
|
jp_reverse_sjis.test | File | 2.17 KB | 0644 |
|
jp_reverse_ucs2.test | File | 2.22 KB | 0644 |
|
jp_reverse_ujis.test | File | 2.18 KB | 0644 |
|
jp_reverse_utf8.test | File | 2.35 KB | 0644 |
|
jp_right_sjis.test | File | 4.54 KB | 0644 |
|
jp_right_ucs2.test | File | 4.65 KB | 0644 |
|
jp_right_ujis.test | File | 4.61 KB | 0644 |
|
jp_right_utf8.test | File | 5.12 KB | 0644 |
|
jp_rpad_sjis.test | File | 2.64 KB | 0644 |
|
jp_rpad_ucs2.test | File | 2.76 KB | 0644 |
|
jp_rpad_ujis.test | File | 2.71 KB | 0644 |
|
jp_rpad_utf8.test | File | 2.96 KB | 0644 |
|
jp_rtrim_sjis.test | File | 4.89 KB | 0644 |
|
jp_rtrim_ucs2.test | File | 5.11 KB | 0644 |
|
jp_rtrim_ujis.test | File | 5.07 KB | 0644 |
|
jp_rtrim_utf8.test | File | 5.57 KB | 0644 |
|
jp_select_sjis.test | File | 2.52 KB | 0644 |
|
jp_select_ucs2.test | File | 4.77 KB | 0644 |
|
jp_select_ujis.test | File | 2.43 KB | 0644 |
|
jp_select_utf8.test | File | 2.51 KB | 0644 |
|
jp_subquery_sjis.test | File | 5.87 KB | 0644 |
|
jp_subquery_ucs2.test | File | 6.19 KB | 0644 |
|
jp_subquery_ujis.test | File | 6.15 KB | 0644 |
|
jp_subquery_utf8.test | File | 6.46 KB | 0644 |
|
jp_substring_sjis.test | File | 15.15 KB | 0644 |
|
jp_substring_ucs2.test | File | 15.49 KB | 0644 |
|
jp_substring_ujis.test | File | 15.22 KB | 0644 |
|
jp_substring_utf8.test | File | 16.89 KB | 0644 |
|
jp_trim_sjis.test | File | 288 B | 0644 |
|
jp_trim_ucs2.test | File | 7.49 KB | 0644 |
|
jp_trim_ujis.test | File | 7.44 KB | 0644 |
|
jp_trim_utf8.test | File | 8.29 KB | 0644 |
|
jp_union_ujis.test | File | 4.8 KB | 0644 |
|
jp_update_sjis.test | File | 2.4 KB | 0644 |
|
jp_update_ucs2.test | File | 2.49 KB | 0644 |
|
jp_update_ujis.test | File | 2.44 KB | 0644 |
|
jp_update_utf8.test | File | 2.66 KB | 0644 |
|
jp_where_sjis.test | File | 3.67 KB | 0644 |
|
jp_where_ucs2.test | File | 5.42 KB | 0644 |
|
jp_where_ujis.test | File | 3.06 KB | 0644 |
|
jp_where_utf8.test | File | 3.31 KB | 0644 |
|