Commit 464c2de7 authored by mleich@five.local.lan's avatar mleich@five.local.lan

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  
parent 742e84d7
#
# Test TRIM() function with Japanese characters sjis encoding
#
--source include/have_sjis.inc
--character_set sjis
SET NAMES sjis;
SET character_set_database = sjis;
--disable_warnings
DROP TABLE IF EXISTS `T1`;
DROP TABLE IF EXISTS `T2`;
DROP TABLE IF EXISTS `T3`;
--enable_warnings
--replace_result $engine <engine_to_be_tested>
eval CREATE TABLE `T1` (`C1` CHAR(12), INDEX(`C1`)) DEFAULT CHARSET = sjis ENGINE = $engine;
--replace_result $engine <engine_to_be_tested>
eval CREATE TABLE `T2` (`C1` CHAR(12), INDEX(`C1`)) DEFAULT CHARSET = sjis ENGINE = $engine;
--replace_result $engine <engine_to_be_tested>
eval CREATE TABLE `T3` (`C1` CHAR(12), INDEX(`C1`)) DEFAULT CHARSET = sjis ENGINE = $engine;
# Nothing to trim
INSERT INTO `T1` VALUES ('アイウエオ');
# Test data for TRIM(TRAILING [remstr] FROM str)
INSERT INTO `T1` VALUES ('アイウエオカ');
INSERT INTO `T1` VALUES ('アイウエオカカ');
INSERT INTO `T1` VALUES ('アイウエオカカカ');
# Test data for TRIM(LEADING [remstr] FROM str)
INSERT INTO `T1` VALUES ('カアイウエオ');
INSERT INTO `T1` VALUES ('カカアイウエオ');
INSERT INTO `T1` VALUES ('カカカアイウエオ');
# Test data for TRIM(BOTH [remstr] FROM str)
INSERT INTO `T1` VALUES ('カカカアイウエオカカカ');
# Test data for TRIM without [remstr] (remove spaces)
INSERT INTO `T1` VALUES (' アイウエオ ');
INSERT INTO `T2` VALUES ('あいうえお');
INSERT INTO `T2` VALUES ('あいうえおか');
INSERT INTO `T2` VALUES ('あいうえおかか');
INSERT INTO `T2` VALUES ('あいうえおかかか');
INSERT INTO `T2` VALUES ('かあいうえお');
INSERT INTO `T2` VALUES ('かかあいうえお');
INSERT INTO `T2` VALUES ('かかかあいうえお');
INSERT INTO `T2` VALUES ('かかかあいうえおかかか');
INSERT INTO `T2` VALUES (' あいうえお ');
INSERT INTO `T3` VALUES ('ソ十表予構');
INSERT INTO `T3` VALUES ('ソ十表予構暴');
INSERT INTO `T3` VALUES ('ソ十表予構暴暴');
INSERT INTO `T3` VALUES ('ソ十表予構暴暴暴');
INSERT INTO `T3` VALUES ('暴ソ十表予構');
INSERT INTO `T3` VALUES ('暴暴ソ十表予構');
INSERT INTO `T3` VALUES ('暴暴暴ソ十表予構');
INSERT INTO `T3` VALUES ('暴暴暴ソ十表予構暴暴暴');
INSERT INTO `T3` VALUES (' ソ十表予構 ');
SELECT `C1`,TRIM(TRAILING 'カ' FROM `C1`) FROM `T1`;
SELECT `C1`,TRIM(LEADING 'カ' FROM `C1`) FROM `T1`;
SELECT `C1`,TRIM(BOTH 'カ' FROM `C1`) FROM `T1`;
SELECT `C1`,TRIM(`C1`) FROM `T1`;
SELECT `C1`,TRIM(TRAILING 'か' FROM `C1`) FROM `T2`;
SELECT `C1`,TRIM(LEADING 'か' FROM `C1`) FROM `T2`;
SELECT `C1`,TRIM(BOTH 'か' FROM `C1`) FROM `T2`;
SELECT `C1`,TRIM(`C1`) FROM `T2`;
SELECT `C1`,TRIM(TRAILING '暴' FROM `C1`) FROM `T3`;
SELECT `C1`,TRIM(LEADING '暴' FROM `C1`) FROM `T3`;
SELECT `C1`,TRIM(BOTH '暴' FROM `C1`) FROM `T3`;
SELECT `C1`,TRIM(`C1`) FROM `T3`;
DROP TABLE `T1`;
DROP TABLE `T2`;
DROP TABLE `T3`;
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -7,9 +7,6 @@ drop table if exists ` ...@@ -7,9 +7,6 @@ drop table if exists `
drop table if exists `T7`; drop table if exists `T7`;
drop table if exists `T8`; drop table if exists `T8`;
drop table if exists `T9`; drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES sjis; SET NAMES sjis;
SET character_set_database = sjis; SET character_set_database = sjis;
CREATE TABLE `T1` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = innodb; CREATE TABLE `T1` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = innodb;
...@@ -18,12 +15,9 @@ CREATE TABLE ` ...@@ -18,12 +15,9 @@ CREATE TABLE `
CREATE TABLE `T4` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = myisam; CREATE TABLE `T4` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `T5` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = myisam; CREATE TABLE `T5` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `T6` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = myisam; CREATE TABLE `T6` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `T7` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = heap; CREATE TABLE `T7` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = heap; CREATE TABLE `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = heap; CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `T10` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = bdb;
CREATE TABLE `T11` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = bdb;
CREATE TABLE `T12` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = bdb;
INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),(''); INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),(''); INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T3` VALUES ('ソ十表予構'),('ソ十表予'),('ソ十表'),('ソ十'),('ソ'),(''); INSERT INTO `T3` VALUES ('ソ十表予構'),('ソ十表予'),('ソ十表'),('ソ十'),('ソ'),('');
...@@ -33,9 +27,6 @@ INSERT INTO ` ...@@ -33,9 +27,6 @@ INSERT INTO `
INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),(''); INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),(''); INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T9` VALUES ('ソ十表予構'),('ソ十表予'),('ソ十表'),('ソ十'),('ソ'),(''); INSERT INTO `T9` VALUES ('ソ十表予構'),('ソ十表予'),('ソ十表'),('ソ十'),('ソ'),('');
INSERT INTO `T10` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T11` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T12` VALUES ('ソ十表予構'),('ソ十表予'),('ソ十表'),('ソ十'),('ソ'),('');
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T1`; SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T1`;
C1 CHAR_LENGTH(`C1`) C1 CHAR_LENGTH(`C1`)
0 0
...@@ -106,30 +97,6 @@ SELECT ` ...@@ -106,30 +97,6 @@ SELECT `
ソ十表予 4 ソ十表予 4
ソ十表 3 ソ十表 3
ソ十 2 ソ十 2
ソ 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T10`;
C1 CHAR_LENGTH(`C1`)
アイウエオ 5
アイウエ 4
アイウ 3
アイ 2
ア 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T11`;
C1 CHAR_LENGTH(`C1`)
あいうえお 5
あいうえ 4
あいう 3
あい 2
あ 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T12`;
C1 CHAR_LENGTH(`C1`)
ソ十表予構 5
ソ十表予 4
ソ十表 3
ソ十 2
ソ 1 ソ 1
0 0
DROP TABLE `T1`; DROP TABLE `T1`;
...@@ -141,6 +108,3 @@ DROP TABLE ` ...@@ -141,6 +108,3 @@ DROP TABLE `
DROP TABLE `T7`; DROP TABLE `T7`;
DROP TABLE `T8`; DROP TABLE `T8`;
DROP TABLE `T9`; DROP TABLE `T9`;
DROP TABLE `T10`;
DROP TABLE `T11`;
DROP TABLE `T12`;
...@@ -7,9 +7,6 @@ drop table if exists ` ...@@ -7,9 +7,6 @@ drop table if exists `
drop table if exists `T7`; drop table if exists `T7`;
drop table if exists `T8`; drop table if exists `T8`;
drop table if exists `T9`; drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES ujis; SET NAMES ujis;
SET character_set_database = ucs2; SET character_set_database = ucs2;
SET collation_connection = ucs2_general_ci; SET collation_connection = ucs2_general_ci;
...@@ -19,12 +16,9 @@ CREATE TABLE ` ...@@ -19,12 +16,9 @@ CREATE TABLE `
CREATE TABLE `T4` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam; CREATE TABLE `T4` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `T5` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam; CREATE TABLE `T5` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `T6` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam; CREATE TABLE `T6` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `T7` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = heap; CREATE TABLE `T7` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = heap; CREATE TABLE `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = heap; CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `T10` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = bdb;
CREATE TABLE `T11` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = bdb;
CREATE TABLE `T12` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = bdb;
INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),(''); INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),(''); INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T3` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),(''); INSERT INTO `T3` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
...@@ -34,9 +28,6 @@ INSERT INTO ` ...@@ -34,9 +28,6 @@ INSERT INTO `
INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),(''); INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),(''); INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T9` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),(''); INSERT INTO `T9` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `T10` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T11` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T12` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T1`; SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T1`;
C1 CHAR_LENGTH(`C1`) C1 CHAR_LENGTH(`C1`)
0 0
...@@ -107,30 +98,6 @@ SELECT ` ...@@ -107,30 +98,6 @@ SELECT `
龔龖龗龞 4 龔龖龗龞 4
龔龖龗 3 龔龖龗 3
龔龖 2 龔龖 2
龔 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T10`;
C1 CHAR_LENGTH(`C1`)
アイウエオ 5
アイウエ 4
アイウ 3
アイ 2
ア 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T11`;
C1 CHAR_LENGTH(`C1`)
あいうえお 5
あいうえ 4
あいう 3
あい 2
あ 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T12`;
C1 CHAR_LENGTH(`C1`)
龔龖龗龞龡 5
龔龖龗龞 4
龔龖龗 3
龔龖 2
龔 1 龔 1
0 0
DROP TABLE `T1`; DROP TABLE `T1`;
...@@ -142,6 +109,3 @@ DROP TABLE ` ...@@ -142,6 +109,3 @@ DROP TABLE `
DROP TABLE `T7`; DROP TABLE `T7`;
DROP TABLE `T8`; DROP TABLE `T8`;
DROP TABLE `T9`; DROP TABLE `T9`;
DROP TABLE `T10`;
DROP TABLE `T11`;
DROP TABLE `T12`;
...@@ -7,9 +7,6 @@ drop table if exists ` ...@@ -7,9 +7,6 @@ drop table if exists `
drop table if exists `T7`; drop table if exists `T7`;
drop table if exists `T8`; drop table if exists `T8`;
drop table if exists `T9`; drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES ujis; SET NAMES ujis;
SET character_set_database = ujis; SET character_set_database = ujis;
CREATE TABLE `T1` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = innodb; CREATE TABLE `T1` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = innodb;
...@@ -18,12 +15,9 @@ CREATE TABLE ` ...@@ -18,12 +15,9 @@ CREATE TABLE `
CREATE TABLE `T4` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = myisam; CREATE TABLE `T4` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `T5` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = myisam; CREATE TABLE `T5` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `T6` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = myisam; CREATE TABLE `T6` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `T7` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = heap; CREATE TABLE `T7` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = MEMORY;
CREATE TABLE `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = heap; CREATE TABLE `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = MEMORY;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = heap; CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = MEMORY;
CREATE TABLE `T10` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = bdb;
CREATE TABLE `T11` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = bdb;
CREATE TABLE `T12` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = bdb;
INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),(''); INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),(''); INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T3` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),(''); INSERT INTO `T3` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
...@@ -33,9 +27,6 @@ INSERT INTO ` ...@@ -33,9 +27,6 @@ INSERT INTO `
INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),(''); INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),(''); INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T9` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),(''); INSERT INTO `T9` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `T10` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T11` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T12` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T1`; SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T1`;
C1 CHAR_LENGTH(`C1`) C1 CHAR_LENGTH(`C1`)
0 0
...@@ -106,30 +97,6 @@ SELECT ` ...@@ -106,30 +97,6 @@ SELECT `
龔龖龗龞 4 龔龖龗龞 4
龔龖龗 3 龔龖龗 3
龔龖 2 龔龖 2
龔 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T10`;
C1 CHAR_LENGTH(`C1`)
アイウエオ 5
アイウエ 4
アイウ 3
アイ 2
ア 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T11`;
C1 CHAR_LENGTH(`C1`)
あいうえお 5
あいうえ 4
あいう 3
あい 2
あ 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T12`;
C1 CHAR_LENGTH(`C1`)
龔龖龗龞龡 5
龔龖龗龞 4
龔龖龗 3
龔龖 2
龔 1 龔 1
0 0
DROP TABLE `T1`; DROP TABLE `T1`;
...@@ -141,6 +108,3 @@ DROP TABLE ` ...@@ -141,6 +108,3 @@ DROP TABLE `
DROP TABLE `T7`; DROP TABLE `T7`;
DROP TABLE `T8`; DROP TABLE `T8`;
DROP TABLE `T9`; DROP TABLE `T9`;
DROP TABLE `T10`;
DROP TABLE `T11`;
DROP TABLE `T12`;
...@@ -7,9 +7,6 @@ drop table if exists `T6`; ...@@ -7,9 +7,6 @@ drop table if exists `T6`;
drop table if exists `T7`; drop table if exists `T7`;
drop table if exists `T8`; drop table if exists `T8`;
drop table if exists `T9`; drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES utf8; SET NAMES utf8;
SET character_set_database = utf8; SET character_set_database = utf8;
CREATE TABLE `T1` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = innodb; CREATE TABLE `T1` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = innodb;
...@@ -18,12 +15,9 @@ CREATE TABLE `T3` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 ...@@ -18,12 +15,9 @@ CREATE TABLE `T3` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8
CREATE TABLE `T4` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = myisam; CREATE TABLE `T4` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `T5` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = myisam; CREATE TABLE `T5` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `T6` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = myisam; CREATE TABLE `T6` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `T7` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = heap; CREATE TABLE `T7` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = MEMORY;
CREATE TABLE `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = heap; CREATE TABLE `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = MEMORY;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = heap; CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = MEMORY;
CREATE TABLE `T10` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `T11` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `T12` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = bdb;
INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),(''); INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),(''); INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T3` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),(''); INSERT INTO `T3` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
...@@ -33,9 +27,6 @@ INSERT INTO `T6` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),( ...@@ -33,9 +27,6 @@ INSERT INTO `T6` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),(
INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),(''); INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),(''); INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T9` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),(''); INSERT INTO `T9` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `T10` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T11` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T12` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T1`; SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T1`;
C1 CHAR_LENGTH(`C1`) C1 CHAR_LENGTH(`C1`)
0 0
...@@ -106,30 +97,6 @@ SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T9`; ...@@ -106,30 +97,6 @@ SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T9`;
龔龖龗龞 4 龔龖龗龞 4
龔龖龗 3 龔龖龗 3
龔龖 2 龔龖 2
龔 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T10`;
C1 CHAR_LENGTH(`C1`)
アイウエオ 5
アイウエ 4
アイウ 3
アイ 2
ア 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T11`;
C1 CHAR_LENGTH(`C1`)
あいうえお 5
あいうえ 4
あいう 3
あい 2
あ 1
0
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T12`;
C1 CHAR_LENGTH(`C1`)
龔龖龗龞龡 5
龔龖龗龞 4
龔龖龗 3
龔龖 2
龔 1 龔 1
0 0
DROP TABLE `T1`; DROP TABLE `T1`;
...@@ -141,6 +108,3 @@ DROP TABLE `T6`; ...@@ -141,6 +108,3 @@ DROP TABLE `T6`;
DROP TABLE `T7`; DROP TABLE `T7`;
DROP TABLE `T8`; DROP TABLE `T8`;
DROP TABLE `T9`; DROP TABLE `T9`;
DROP TABLE `T10`;
DROP TABLE `T11`;
DROP TABLE `T12`;
...@@ -7,9 +7,6 @@ drop table if exists ` ...@@ -7,9 +7,6 @@ drop table if exists `
drop table if exists `sV`; drop table if exists `sV`;
drop table if exists `sW`; drop table if exists `sW`;
drop table if exists `sX`; drop table if exists `sX`;
drop table if exists `sPO`;
drop table if exists `sPP`;
drop table if exists `sPQ`;
SET NAMES sjis; SET NAMES sjis;
SET character_set_database = sjis; SET character_set_database = sjis;
CREATE TABLE `sP` (`bP` char(20)) DEFAULT CHARSET = sjis engine = innodb; CREATE TABLE `sP` (`bP` char(20)) DEFAULT CHARSET = sjis engine = innodb;
...@@ -18,12 +15,9 @@ CREATE TABLE ` ...@@ -18,12 +15,9 @@ CREATE TABLE `
CREATE TABLE `sS` (`bP` char(20)) DEFAULT CHARSET = sjis engine = myisam; CREATE TABLE `sS` (`bP` char(20)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `sT` (`bP` char(20)) DEFAULT CHARSET = sjis engine = myisam; CREATE TABLE `sT` (`bP` char(20)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `sU` (`bP` char(20)) DEFAULT CHARSET = sjis engine = myisam; CREATE TABLE `sU` (`bP` char(20)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `sV` (`bP` char(20)) DEFAULT CHARSET = sjis engine = heap; CREATE TABLE `sV` (`bP` char(20)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `sW` (`bP` char(20)) DEFAULT CHARSET = sjis engine = heap; CREATE TABLE `sW` (`bP` char(20)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `sX` (`bP` char(20)) DEFAULT CHARSET = sjis engine = heap; CREATE TABLE `sX` (`bP` char(20)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `sPO` (`bP` char(20)) DEFAULT CHARSET = sjis engine = bdb;
CREATE TABLE `sPP` (`bP` char(20)) DEFAULT CHARSET = sjis engine = bdb;
CREATE TABLE `sPQ` (`bP` char(20)) DEFAULT CHARSET = sjis engine = bdb;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `sP`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `sP`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `sQ`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `sQ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `sR`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `sR`;
...@@ -33,9 +27,6 @@ LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE ` ...@@ -33,9 +27,6 @@ LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `sV`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `sV`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `sW`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `sW`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `sX`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `sX`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `sPO`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `sPP`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `sPQ`;
SELECT DISTINCT CHARSET(`bP`) FROM `sP`; SELECT DISTINCT CHARSET(`bP`) FROM `sP`;
CHARSET(`bP`) CHARSET(`bP`)
sjis sjis
...@@ -171,51 +162,6 @@ sjis ...@@ -171,51 +162,6 @@ sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sX`; SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sX`;
CHARSET(CONVERT(`bP` USING ujis)) CHARSET(CONVERT(`bP` USING ujis))
ujis ujis
SELECT DISTINCT CHARSET(`bP`) FROM `sPO`;
CHARSET(`bP`)
sjis
SELECT DISTINCT CHARSET(`bP`) FROM `sPP`;
CHARSET(`bP`)
sjis
SELECT DISTINCT CHARSET(`bP`) FROM `sPQ`;
CHARSET(`bP`)
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING utf8)) FROM `sPO`;
CHARSET(CONVERT(`bP` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ucs2)) FROM `sPO`;
CHARSET(CONVERT(`bP` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`bP` USING sjis)) FROM `sPO`;
CHARSET(CONVERT(`bP` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sPO`;
CHARSET(CONVERT(`bP` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING utf8)) FROM `sPP`;
CHARSET(CONVERT(`bP` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ucs2)) FROM `sPP`;
CHARSET(CONVERT(`bP` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`bP` USING sjis)) FROM `sPP`;
CHARSET(CONVERT(`bP` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sPP`;
CHARSET(CONVERT(`bP` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING utf8)) FROM `sPQ`;
CHARSET(CONVERT(`bP` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ucs2)) FROM `sPQ`;
CHARSET(CONVERT(`bP` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`bP` USING sjis)) FROM `sPQ`;
CHARSET(CONVERT(`bP` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sPQ`;
CHARSET(CONVERT(`bP` USING ujis))
ujis
drop table `sP`; drop table `sP`;
drop table `sQ`; drop table `sQ`;
drop table `sR`; drop table `sR`;
...@@ -225,6 +171,3 @@ drop table ` ...@@ -225,6 +171,3 @@ drop table `
drop table `sV`; drop table `sV`;
drop table `sW`; drop table `sW`;
drop table `sX`; drop table `sX`;
drop table `sPO`;
drop table `sPP`;
drop table `sPQ`;
...@@ -7,9 +7,6 @@ drop table if exists ` ...@@ -7,9 +7,6 @@ drop table if exists `
drop table if exists `T7`; drop table if exists `T7`;
drop table if exists `T8`; drop table if exists `T8`;
drop table if exists `T9`; drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES ujis; SET NAMES ujis;
SET character_set_database = ucs2; SET character_set_database = ucs2;
CREATE TABLE `T1` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = innodb; CREATE TABLE `T1` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = innodb;
...@@ -18,12 +15,9 @@ CREATE TABLE ` ...@@ -18,12 +15,9 @@ CREATE TABLE `
CREATE TABLE `T4` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = myisam; CREATE TABLE `T4` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `T5` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = myisam; CREATE TABLE `T5` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `T6` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = myisam; CREATE TABLE `T6` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `T7` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = heap; CREATE TABLE `T7` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `T8` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = heap; CREATE TABLE `T8` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `T9` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = heap; CREATE TABLE `T9` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `T10` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = bdb;
CREATE TABLE `T11` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = bdb;
CREATE TABLE `T12` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = bdb;
INSERT INTO `T1` VALUES INSERT INTO `T1` VALUES
('PQRSTUVWXYZ[\\]^_') ('PQRSTUVWXYZ[\\]^_')
,(' 。「」、・ヲァィゥェォャュョッ') ,(' 。「」、・ヲァィゥェォャュョッ')
...@@ -90,28 +84,6 @@ INSERT INTO ` ...@@ -90,28 +84,6 @@ INSERT INTO `
,('・黸黿鼂鼃鼉鼏鼐鼑鼒鼔鼖鼗鼙鼚鼛鼟鼢鼦鼪') ,('・黸黿鼂鼃鼉鼏鼐鼑鼒鼔鼖鼗鼙鼚鼛鼟鼢鼦鼪')
,('鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃齄齅齆齇齓齕齖') ,('鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃齄齅齆齇齓齕齖')
,('齗齘齚齝齞齨齩齭齮齯齰齱齳齵齺齽龏龐龑龒'); ,('齗齘齚齝齞齨齩齭齮齯齰齱齳齵齺齽龏龐龑龒');
INSERT INTO `T10` VALUES
('PQRSTUVWXYZ[\\]^_')
,(' 。「」、・ヲァィゥェォャュョッ')
,('ーアイウエオカキクケコサシスセソ')
,('タチツテトナニヌネノハヒフヘホマ')
,('ミムメモヤユヨラリルレロワン゙゚');
INSERT INTO `T11` VALUES
('ヾゝゞ〃仝々〆〇ー—‐/\〜‖|…‥‘’')
,('“”()〔〕[]{}〈〉《》「」『』【】')
,('・ぁあぃいぅうぇえぉおかがきぎくぐけげこ')
,('・ァアィイゥウェエォオカガキギクグケゲコ')
,('・亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵')
,('・弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞')
,('・鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻');
INSERT INTO `T12` VALUES
('・˛˚~΄΅・・・・・・・・¡¦¿・・・')
,('乚乜乣乨乩乴乵乹乿亍亖亗亝亯亹仃仐仚仛仠')
,('仡仢仨仯仱仳仵份仾仿伀伂伃伈伋伌伒伕伖众')
,('伙伮伱你伳伵伷伹伻伾佀佂佈佉佋佌佒佔佖佘')
,('・黸黿鼂鼃鼉鼏鼐鼑鼒鼔鼖鼗鼙鼚鼛鼟鼢鼦鼪')
,('鼫鼯鼱鼲鼴鼷鼹鼺鼼鼽鼿齁齃齄齅齆齇齓齕齖')
,('齗齘齚齝齞齨齩齭齮齯齰齱齳齵齺齽龏龐龑龒');
SELECT DISTINCT CHARSET(`C1`) FROM `T1`; SELECT DISTINCT CHARSET(`C1`) FROM `T1`;
CHARSET(`C1`) CHARSET(`C1`)
ucs2 ucs2
...@@ -247,51 +219,6 @@ sjis ...@@ -247,51 +219,6 @@ sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T9`; SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T9`;
CHARSET(CONVERT(`C1` USING ujis)) CHARSET(CONVERT(`C1` USING ujis))
ujis ujis
SELECT DISTINCT CHARSET(`C1`) FROM `T10`;
CHARSET(`C1`)
ucs2
SELECT DISTINCT CHARSET(`C1`) FROM `T11`;
CHARSET(`C1`)
ucs2
SELECT DISTINCT CHARSET(`C1`) FROM `T12`;
CHARSET(`C1`)
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T10`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T10`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T10`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T10`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T11`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T11`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T11`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T11`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T12`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T12`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T12`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T12`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
drop table `T1`; drop table `T1`;
drop table `T2`; drop table `T2`;
drop table `T3`; drop table `T3`;
...@@ -301,6 +228,3 @@ drop table ` ...@@ -301,6 +228,3 @@ drop table `
drop table `T7`; drop table `T7`;
drop table `T8`; drop table `T8`;
drop table `T9`; drop table `T9`;
drop table `T10`;
drop table `T11`;
drop table `T12`;
...@@ -7,9 +7,6 @@ drop table if exists ` ...@@ -7,9 +7,6 @@ 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 `ԣ`;
SET NAMES ujis; SET NAMES ujis;
SET character_set_database = ujis; SET character_set_database = ujis;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = innodb; CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = innodb;
...@@ -18,12 +15,9 @@ CREATE TABLE ` ...@@ -18,12 +15,9 @@ CREATE TABLE `
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = myisam; CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = myisam; CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = myisam; CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = heap; CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = MEMORY;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = heap; CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = MEMORY;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = heap; CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = MEMORY;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = bdb;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = bdb;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = bdb;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `ԣ`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `ԣ`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `ԣ`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `ԣ`;
...@@ -33,9 +27,6 @@ LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE ` ...@@ -33,9 +27,6 @@ LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `ԣ`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `ԣ`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `ԣ`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `ԣ`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `ԣ`;
SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`; SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`;
CHARSET(`ã`) CHARSET(`ã`)
ujis ujis
...@@ -171,51 +162,6 @@ sjis ...@@ -171,51 +162,6 @@ sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`; SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ujis)) CHARSET(CONVERT(`ã` USING ujis))
ujis ujis
SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`;
CHARSET(`ã`)
ujis
SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`;
CHARSET(`ã`)
ujis
SELECT DISTINCT CHARSET(`ã`) FROM `ԣ`;
CHARSET(`ã`)
ujis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING utf8)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ucs2)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`ã` USING sjis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING utf8)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ucs2)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`ã` USING sjis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING utf8)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ucs2)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`ã` USING sjis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING ujis))
ujis
drop table `ԣ`; drop table `ԣ`;
drop table `ԣ`; drop table `ԣ`;
drop table `ԣ`; drop table `ԣ`;
...@@ -225,6 +171,3 @@ drop table ` ...@@ -225,6 +171,3 @@ drop table `
drop table `ԣ`; drop table `ԣ`;
drop table `ԣ`; drop table `ԣ`;
drop table `ԣ`; drop table `ԣ`;
drop table `ԣ`;
drop table `ԣ`;
drop table `ԣ`;
...@@ -7,9 +7,6 @@ drop table if exists `T6`; ...@@ -7,9 +7,6 @@ drop table if exists `T6`;
drop table if exists `T7`; drop table if exists `T7`;
drop table if exists `T8`; drop table if exists `T8`;
drop table if exists `T9`; drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES utf8; SET NAMES utf8;
SET character_set_database = utf8; SET character_set_database = utf8;
CREATE TABLE `T1` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = innodb; CREATE TABLE `T1` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = innodb;
...@@ -18,12 +15,9 @@ CREATE TABLE `T3` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = innodb ...@@ -18,12 +15,9 @@ CREATE TABLE `T3` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = innodb
CREATE TABLE `T4` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = myisam; CREATE TABLE `T4` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `T5` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = myisam; CREATE TABLE `T5` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `T6` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = myisam; CREATE TABLE `T6` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = myisam;
CREATE TABLE `T7` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = heap; CREATE TABLE `T7` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = MEMORY;
CREATE TABLE `T8` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = heap; CREATE TABLE `T8` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = MEMORY;
CREATE TABLE `T9` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = heap; CREATE TABLE `T9` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = MEMORY;
CREATE TABLE `T10` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `T11` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = bdb;
CREATE TABLE `T12` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = bdb;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_utf8.dat' INTO TABLE `T1`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_utf8.dat' INTO TABLE `T1`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_utf8.dat' INTO TABLE `T2`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_utf8.dat' INTO TABLE `T2`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE `T3`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE `T3`;
...@@ -33,9 +27,6 @@ LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE `T6` ...@@ -33,9 +27,6 @@ LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE `T6`
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_utf8.dat' INTO TABLE `T7`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_utf8.dat' INTO TABLE `T7`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_utf8.dat' INTO TABLE `T8`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_utf8.dat' INTO TABLE `T8`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE `T9`; LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE `T9`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_utf8.dat' INTO TABLE `T10`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_utf8.dat' INTO TABLE `T11`;
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_utf8.dat' INTO TABLE `T12`;
SELECT DISTINCT CHARSET(`C1`) FROM `T1`; SELECT DISTINCT CHARSET(`C1`) FROM `T1`;
CHARSET(`C1`) CHARSET(`C1`)
utf8 utf8
...@@ -171,51 +162,6 @@ sjis ...@@ -171,51 +162,6 @@ sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T9`; SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T9`;
CHARSET(CONVERT(`C1` USING ujis)) CHARSET(CONVERT(`C1` USING ujis))
ujis ujis
SELECT DISTINCT CHARSET(`C1`) FROM `T10`;
CHARSET(`C1`)
utf8
SELECT DISTINCT CHARSET(`C1`) FROM `T11`;
CHARSET(`C1`)
utf8
SELECT DISTINCT CHARSET(`C1`) FROM `T12`;
CHARSET(`C1`)
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T10`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T10`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T10`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T10`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T11`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T11`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T11`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T11`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING utf8)) FROM `T12`;
CHARSET(CONVERT(`C1` USING utf8))
utf8
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ucs2)) FROM `T12`;
CHARSET(CONVERT(`C1` USING ucs2))
ucs2
SELECT DISTINCT CHARSET(CONVERT(`C1` USING sjis)) FROM `T12`;
CHARSET(CONVERT(`C1` USING sjis))
sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T12`;
CHARSET(CONVERT(`C1` USING ujis))
ujis
drop table `T1`; drop table `T1`;
drop table `T2`; drop table `T2`;
drop table `T3`; drop table `T3`;
...@@ -225,6 +171,3 @@ drop table `T6`; ...@@ -225,6 +171,3 @@ drop table `T6`;
drop table `T7`; drop table `T7`;
drop table `T8`; drop table `T8`;
drop table `T9`; drop table `T9`;
drop table `T10`;
drop table `T11`;
drop table `T12`;
...@@ -8,11 +8,12 @@ CREATE DATABASE ` ...@@ -8,11 +8,12 @@ CREATE DATABASE `
CREATE DATABASE `ソ十表`; CREATE DATABASE `ソ十表`;
SHOW DATABASES; SHOW DATABASES;
Database Database
mysql information_schema
test
ソ十表 ソ十表
日本語 日本語
ニホンゴ ニホンゴ
mysql
test
USE `ニホンゴ`; USE `ニホンゴ`;
USE `日本語`; USE `日本語`;
USE `ソ十表`; USE `ソ十表`;
......
...@@ -9,11 +9,12 @@ CREATE DATABASE ` ...@@ -9,11 +9,12 @@ CREATE DATABASE `
CREATE DATABASE `龔龖龗`; CREATE DATABASE `龔龖龗`;
SHOW DATABASES; SHOW DATABASES;
Database Database
mysql information_schema
test
日本語 日本語
龔龖龗 龔龖龗
ニホンゴ ニホンゴ
mysql
test
USE `ニホンゴ`; USE `ニホンゴ`;
USE `日本語`; USE `日本語`;
USE `龔龖龗`; USE `龔龖龗`;
......
...@@ -8,11 +8,12 @@ CREATE DATABASE ` ...@@ -8,11 +8,12 @@ CREATE DATABASE `
CREATE DATABASE `龔龖龗`; CREATE DATABASE `龔龖龗`;
SHOW DATABASES; SHOW DATABASES;
Database Database
mysql information_schema
test
日本語 日本語
龔龖龗 龔龖龗
ニホンゴ ニホンゴ
mysql
test
USE `ニホンゴ`; USE `ニホンゴ`;
USE `日本語`; USE `日本語`;
USE `龔龖龗`; USE `龔龖龗`;
......
...@@ -8,11 +8,12 @@ CREATE DATABASE `日本語`; ...@@ -8,11 +8,12 @@ CREATE DATABASE `日本語`;
CREATE DATABASE `龔龖龗`; CREATE DATABASE `龔龖龗`;
SHOW DATABASES; SHOW DATABASES;
Database Database
mysql information_schema
test
日本語 日本語
龔龖龗 龔龖龗
ニホンゴ ニホンゴ
mysql
test
USE `ニホンゴ`; USE `ニホンゴ`;
USE `日本語`; USE `日本語`;
USE `龔龖龗`; USE `龔龖龗`;
......
This diff is collapsed.
...@@ -7,9 +7,6 @@ drop table if exists ` ...@@ -7,9 +7,6 @@ drop table if exists `
drop table if exists `T7`; drop table if exists `T7`;
drop table if exists `T8`; drop table if exists `T8`;
drop table if exists `T9`; drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES ujis; SET NAMES ujis;
SET character_set_database = ucs2; SET character_set_database = ucs2;
SET collation_connection = ucs2_general_ci; SET collation_connection = ucs2_general_ci;
...@@ -19,12 +16,9 @@ CREATE TABLE ` ...@@ -19,12 +16,9 @@ CREATE TABLE `
CREATE TABLE `T4` (`C1` ENUM('ア','イ','ウ'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam; CREATE TABLE `T4` (`C1` ENUM('ア','イ','ウ'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `T5` (`C1` ENUM('あ','い','う'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam; CREATE TABLE `T5` (`C1` ENUM('あ','い','う'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `T6` (`C1` ENUM('龔','龖','龗'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam; CREATE TABLE `T6` (`C1` ENUM('龔','龖','龗'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = myisam;
CREATE TABLE `T7` (`C1` ENUM('ア','イ','ウ'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = heap; CREATE TABLE `T7` (`C1` ENUM('ア','イ','ウ'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `T8` (`C1` ENUM('あ','い','う'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = heap; CREATE TABLE `T8` (`C1` ENUM('あ','い','う'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `T9` (`C1` ENUM('龔','龖','龗'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = heap; CREATE TABLE `T9` (`C1` ENUM('龔','龖','龗'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `T10` (`C1` ENUM('ア','イ','ウ'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = bdb;
CREATE TABLE `T11` (`C1` ENUM('あ','い','う'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = bdb;
CREATE TABLE `T12` (`C1` ENUM('龔','龖','龗'), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = bdb;
INSERT INTO `T1` VALUES ('ア'),('イ'),('ウ'); INSERT INTO `T1` VALUES ('ア'),('イ'),('ウ');
INSERT INTO `T2` VALUES ('あ'),('い'),('う'); INSERT INTO `T2` VALUES ('あ'),('い'),('う');
INSERT INTO `T3` VALUES ('龔'),('龖'),('龗'); INSERT INTO `T3` VALUES ('龔'),('龖'),('龗');
...@@ -34,9 +28,6 @@ INSERT INTO ` ...@@ -34,9 +28,6 @@ INSERT INTO `
INSERT INTO `T7` VALUES ('ア'),('イ'),('ウ'); INSERT INTO `T7` VALUES ('ア'),('イ'),('ウ');
INSERT INTO `T8` VALUES ('あ'),('い'),('う'); INSERT INTO `T8` VALUES ('あ'),('い'),('う');
INSERT INTO `T9` VALUES ('龔'),('龖'),('龗'); INSERT INTO `T9` VALUES ('龔'),('龖'),('龗');
INSERT INTO `T10` VALUES ('ア'),('イ'),('ウ');
INSERT INTO `T11` VALUES ('あ'),('い'),('う');
INSERT INTO `T12` VALUES ('龔'),('龖'),('龗');
SELECT * FROM `T1`; SELECT * FROM `T1`;
C1 C1
...@@ -82,93 +73,60 @@ SELECT * FROM ` ...@@ -82,93 +73,60 @@ SELECT * FROM `
SELECT * FROM `T10`;
C1
SELECT * FROM `T11`;
C1
SELECT * FROM `T12`;
C1
SHOW CREATE TABLE `T1`; SHOW CREATE TABLE `T1`;
Table Create Table Table Create Table
T1 CREATE TABLE `T1` ( T1 CREATE TABLE `T1` (
`C1` enum('ア','イ','ウ') default NULL, `C1` enum('ア','イ','ウ') DEFAULT NULL,
KEY `C1` (`C1`) KEY `C1` (`C1`)
) ENGINE=InnoDB DEFAULT CHARSET=ucs2 ) ENGINE=InnoDB DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T2`; SHOW CREATE TABLE `T2`;
Table Create Table Table Create Table
T2 CREATE TABLE `T2` ( T2 CREATE TABLE `T2` (
`C1` enum('あ','い','う') default NULL, `C1` enum('あ','い','う') DEFAULT NULL,
KEY `C1` (`C1`) KEY `C1` (`C1`)
) ENGINE=InnoDB DEFAULT CHARSET=ucs2 ) ENGINE=InnoDB DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T3`; SHOW CREATE TABLE `T3`;
Table Create Table Table Create Table
T3 CREATE TABLE `T3` ( T3 CREATE TABLE `T3` (
`C1` enum('龔','龖','龗') default NULL, `C1` enum('龔','龖','龗') DEFAULT NULL,
KEY `C1` (`C1`) KEY `C1` (`C1`)
) ENGINE=InnoDB DEFAULT CHARSET=ucs2 ) ENGINE=InnoDB DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T4`; SHOW CREATE TABLE `T4`;
Table Create Table Table Create Table
T4 CREATE TABLE `T4` ( T4 CREATE TABLE `T4` (
`C1` enum('ア','イ','ウ') default NULL, `C1` enum('ア','イ','ウ') DEFAULT NULL,
KEY `C1` (`C1`) KEY `C1` (`C1`)
) ENGINE=MyISAM DEFAULT CHARSET=ucs2 ) ENGINE=MyISAM DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T5`; SHOW CREATE TABLE `T5`;
Table Create Table Table Create Table
T5 CREATE TABLE `T5` ( T5 CREATE TABLE `T5` (
`C1` enum('あ','い','う') default NULL, `C1` enum('あ','い','う') DEFAULT NULL,
KEY `C1` (`C1`) KEY `C1` (`C1`)
) ENGINE=MyISAM DEFAULT CHARSET=ucs2 ) ENGINE=MyISAM DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T6`; SHOW CREATE TABLE `T6`;
Table Create Table Table Create Table
T6 CREATE TABLE `T6` ( T6 CREATE TABLE `T6` (
`C1` enum('龔','龖','龗') default NULL, `C1` enum('龔','龖','龗') DEFAULT NULL,
KEY `C1` (`C1`) KEY `C1` (`C1`)
) ENGINE=MyISAM DEFAULT CHARSET=ucs2 ) ENGINE=MyISAM DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T7`; SHOW CREATE TABLE `T7`;
Table Create Table Table Create Table
T7 CREATE TABLE `T7` ( T7 CREATE TABLE `T7` (
`C1` enum('ア','イ','ウ') default NULL, `C1` enum('ア','イ','ウ') DEFAULT NULL,
KEY `C1` (`C1`) KEY `C1` (`C1`)
) ENGINE=HEAP DEFAULT CHARSET=ucs2 ) ENGINE=MEMORY DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T8`; SHOW CREATE TABLE `T8`;
Table Create Table Table Create Table
T8 CREATE TABLE `T8` ( T8 CREATE TABLE `T8` (
`C1` enum('あ','い','う') default NULL, `C1` enum('あ','い','う') DEFAULT NULL,
KEY `C1` (`C1`) KEY `C1` (`C1`)
) ENGINE=HEAP DEFAULT CHARSET=ucs2 ) ENGINE=MEMORY DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T9`; SHOW CREATE TABLE `T9`;
Table Create Table Table Create Table
T9 CREATE TABLE `T9` ( T9 CREATE TABLE `T9` (
`C1` enum('龔','龖','龗') default NULL, `C1` enum('龔','龖','龗') DEFAULT NULL,
KEY `C1` (`C1`)
) ENGINE=HEAP DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T10`;
Table Create Table
T10 CREATE TABLE `T10` (
`C1` enum('ア','イ','ウ') default NULL,
KEY `C1` (`C1`)
) ENGINE=BerkeleyDB DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T11`;
Table Create Table
T11 CREATE TABLE `T11` (
`C1` enum('あ','い','う') default NULL,
KEY `C1` (`C1`) KEY `C1` (`C1`)
) ENGINE=BerkeleyDB DEFAULT CHARSET=ucs2 ) ENGINE=MEMORY DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T12`;
Table Create Table
T12 CREATE TABLE `T12` (
`C1` enum('龔','龖','龗') default NULL,
KEY `C1` (`C1`)
) ENGINE=BerkeleyDB DEFAULT CHARSET=ucs2
DESC `T1`; DESC `T1`;
Field Type Null Key Default Extra Field Type Null Key Default Extra
C1 enum('ア','イ','ウ') YES MUL NULL C1 enum('ア','イ','ウ') YES MUL NULL
...@@ -196,14 +154,113 @@ Field Type Null Key Default Extra ...@@ -196,14 +154,113 @@ Field Type Null Key Default Extra
DESC `T9`; DESC `T9`;
Field Type Null Key Default Extra Field Type Null Key Default Extra
C1 enum('龔','龖','龗') YES MUL NULL C1 enum('龔','龖','龗') YES MUL NULL
DESC `T10`; ALTER TABLE `T1` ADD `C2` CHAR(1) NOT NULL FIRST;
ALTER TABLE `T2` ADD `C2` CHAR(1) NOT NULL FIRST;
ALTER TABLE `T3` ADD `C2` CHAR(1) NOT NULL FIRST;
ALTER TABLE `T4` ADD `C2` CHAR(1) NOT NULL FIRST;
ALTER TABLE `T5` ADD `C2` CHAR(1) NOT NULL FIRST;
ALTER TABLE `T6` ADD `C2` CHAR(1) NOT NULL FIRST;
ALTER TABLE `T7` ADD `C2` CHAR(1) NOT NULL FIRST;
ALTER TABLE `T8` ADD `C2` CHAR(1) NOT NULL FIRST;
ALTER TABLE `T9` ADD `C2` CHAR(1) NOT NULL FIRST;
SHOW CREATE TABLE `T1`;
Table Create Table
T1 CREATE TABLE `T1` (
`C2` char(1) NOT NULL,
`C1` enum('ア','イ','ウ') DEFAULT NULL,
KEY `C1` (`C1`)
) ENGINE=InnoDB DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T2`;
Table Create Table
T2 CREATE TABLE `T2` (
`C2` char(1) NOT NULL,
`C1` enum('あ','い','う') DEFAULT NULL,
KEY `C1` (`C1`)
) ENGINE=InnoDB DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T3`;
Table Create Table
T3 CREATE TABLE `T3` (
`C2` char(1) NOT NULL,
`C1` enum('龔','龖','龗') DEFAULT NULL,
KEY `C1` (`C1`)
) ENGINE=InnoDB DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T4`;
Table Create Table
T4 CREATE TABLE `T4` (
`C2` char(1) NOT NULL,
`C1` enum('ア','イ','ウ') DEFAULT NULL,
KEY `C1` (`C1`)
) ENGINE=MyISAM DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T5`;
Table Create Table
T5 CREATE TABLE `T5` (
`C2` char(1) NOT NULL,
`C1` enum('あ','い','う') DEFAULT NULL,
KEY `C1` (`C1`)
) ENGINE=MyISAM DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T6`;
Table Create Table
T6 CREATE TABLE `T6` (
`C2` char(1) NOT NULL,
`C1` enum('龔','龖','龗') DEFAULT NULL,
KEY `C1` (`C1`)
) ENGINE=MyISAM DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T7`;
Table Create Table
T7 CREATE TABLE `T7` (
`C2` char(1) NOT NULL,
`C1` enum('ア','イ','ウ') DEFAULT NULL,
KEY `C1` (`C1`)
) ENGINE=MEMORY DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T8`;
Table Create Table
T8 CREATE TABLE `T8` (
`C2` char(1) NOT NULL,
`C1` enum('あ','い','う') DEFAULT NULL,
KEY `C1` (`C1`)
) ENGINE=MEMORY DEFAULT CHARSET=ucs2
SHOW CREATE TABLE `T9`;
Table Create Table
T9 CREATE TABLE `T9` (
`C2` char(1) NOT NULL,
`C1` enum('龔','龖','龗') DEFAULT NULL,
KEY `C1` (`C1`)
) ENGINE=MEMORY DEFAULT CHARSET=ucs2
DESC `T1`;
Field Type Null Key Default Extra Field Type Null Key Default Extra
C2 char(1) NO NULL
C1 enum('ア','イ','ウ') YES MUL NULL C1 enum('ア','イ','ウ') YES MUL NULL
DESC `T11`; DESC `T2`;
Field Type Null Key Default Extra
C2 char(1) NO NULL
C1 enum('あ','い','う') YES MUL NULL
DESC `T3`;
Field Type Null Key Default Extra
C2 char(1) NO NULL
C1 enum('龔','龖','龗') YES MUL NULL
DESC `T4`;
Field Type Null Key Default Extra
C2 char(1) NO NULL
C1 enum('ア','イ','ウ') YES MUL NULL
DESC `T5`;
Field Type Null Key Default Extra Field Type Null Key Default Extra
C2 char(1) NO NULL
C1 enum('あ','い','う') YES MUL NULL C1 enum('あ','い','う') YES MUL NULL
DESC `T12`; DESC `T6`;
Field Type Null Key Default Extra
C2 char(1) NO NULL
C1 enum('龔','龖','龗') YES MUL NULL
DESC `T7`;
Field Type Null Key Default Extra
C2 char(1) NO NULL
C1 enum('ア','イ','ウ') YES MUL NULL
DESC `T8`;
Field Type Null Key Default Extra
C2 char(1) NO NULL
C1 enum('あ','い','う') YES MUL NULL
DESC `T9`;
Field Type Null Key Default Extra Field Type Null Key Default Extra
C2 char(1) NO NULL
C1 enum('龔','龖','龗') YES MUL NULL C1 enum('龔','龖','龗') YES MUL NULL
DROP TABLE `T1`; DROP TABLE `T1`;
DROP TABLE `T2`; DROP TABLE `T2`;
...@@ -214,6 +271,3 @@ DROP TABLE ` ...@@ -214,6 +271,3 @@ DROP TABLE `
DROP TABLE `T7`; DROP TABLE `T7`;
DROP TABLE `T8`; DROP TABLE `T8`;
DROP TABLE `T9`; DROP TABLE `T9`;
DROP TABLE `T10`;
DROP TABLE `T11`;
DROP TABLE `T12`;
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -7,9 +7,6 @@ drop table if exists ` ...@@ -7,9 +7,6 @@ drop table if exists `
drop table if exists `T7`; drop table if exists `T7`;
drop table if exists `T8`; drop table if exists `T8`;
drop table if exists `T9`; drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES sjis; SET NAMES sjis;
SET character_set_database = sjis; SET character_set_database = sjis;
CREATE TABLE `T1` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = innodb; CREATE TABLE `T1` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = innodb;
...@@ -18,12 +15,9 @@ CREATE TABLE ` ...@@ -18,12 +15,9 @@ CREATE TABLE `
CREATE TABLE `T4` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = myisam; CREATE TABLE `T4` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `T5` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = myisam; CREATE TABLE `T5` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `T6` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = myisam; CREATE TABLE `T6` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `T7` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = heap; CREATE TABLE `T7` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = heap; CREATE TABLE `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = heap; CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `T10` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = bdb;
CREATE TABLE `T11` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = bdb;
CREATE TABLE `T12` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = bdb;
INSERT INTO `T1` VALUES ('アイウエオ'); INSERT INTO `T1` VALUES ('アイウエオ');
INSERT INTO `T2` VALUES ('あいうえお'); INSERT INTO `T2` VALUES ('あいうえお');
INSERT INTO `T3` VALUES ('ソ十表予構'); INSERT INTO `T3` VALUES ('ソ十表予構');
...@@ -33,9 +27,6 @@ INSERT INTO ` ...@@ -33,9 +27,6 @@ INSERT INTO `
INSERT INTO `T7` VALUES ('アイウエオ'); INSERT INTO `T7` VALUES ('アイウエオ');
INSERT INTO `T8` VALUES ('あいうえお'); INSERT INTO `T8` VALUES ('あいうえお');
INSERT INTO `T9` VALUES ('ソ十表予構'); INSERT INTO `T9` VALUES ('ソ十表予構');
INSERT INTO `T10` VALUES ('アイウエオ');
INSERT INTO `T11` VALUES ('あいうえお');
INSERT INTO `T12` VALUES ('ソ十表予構');
SELECT REVERSE(`C1`) FROM `T1`; SELECT REVERSE(`C1`) FROM `T1`;
REVERSE(`C1`) REVERSE(`C1`)
オエウイア オエウイア
...@@ -63,15 +54,6 @@ REVERSE(` ...@@ -63,15 +54,6 @@ REVERSE(`
SELECT REVERSE(`C1`) FROM `T9`; SELECT REVERSE(`C1`) FROM `T9`;
REVERSE(`C1`) REVERSE(`C1`)
構予表十ソ 構予表十ソ
SELECT REVERSE(`C1`) FROM `T10`;
REVERSE(`C1`)
オエウイア
SELECT REVERSE(`C1`) FROM `T11`;
REVERSE(`C1`)
おえういあ
SELECT REVERSE(`C1`) FROM `T12`;
REVERSE(`C1`)
構予表十ソ
DROP TABLE `T1`; DROP TABLE `T1`;
DROP TABLE `T2`; DROP TABLE `T2`;
DROP TABLE `T3`; DROP TABLE `T3`;
...@@ -81,6 +63,3 @@ DROP TABLE ` ...@@ -81,6 +63,3 @@ DROP TABLE `
DROP TABLE `T7`; DROP TABLE `T7`;
DROP TABLE `T8`; DROP TABLE `T8`;
DROP TABLE `T9`; DROP TABLE `T9`;
DROP TABLE `T10`;
DROP TABLE `T11`;
DROP TABLE `T12`;
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment