Commit 8eaa55fb authored by unknown's avatar unknown

Merge pcrews-mac-local.local:/Users/pcrews/usr/local/bin/data0/clean/mysql-5.1-bugteam

into  pcrews-mac-local.local:/Users/pcrews/usr/local/bin/data0/build_work/test_fix/mysql-5.1-bugteam_35744

parents 341f9ab2 19e1bc76
......@@ -18,6 +18,13 @@ use test;
drop table if exists t1, t2, t3;
--enable_warnings
# If concurrent inserts are on, it is not guaranteed that the rows
# inserted by INSERT are immediately accessible by SELECT in another
# thread. This would cause problems near the line 'connection master1'
# below. So we turn off concurrent inserts.
SET @old_concurrent_insert= @@global.concurrent_insert;
SET @@global.concurrent_insert= 0;
--echo #
--echo # See if queries that use both auto_increment and LAST_INSERT_ID()
--echo # are replicated well
......@@ -29,8 +36,8 @@ drop table if exists t1, t2, t3;
#should work for both SBR and RBR
connection master;
create table t1(a int auto_increment, key(a));
create table t2(b int auto_increment, c int, key(b));
eval create table t1(a int auto_increment, key(a)) engine=$engine_type;
eval create table t2(b int auto_increment, c int, key(b)) engine=$engine_type;
insert into t1 values (1),(2),(3);
insert into t1 values (null);
insert into t2 values (null,last_insert_id());
......@@ -68,8 +75,8 @@ connection master;
drop table t2;
drop table t1;
create table t1(a int auto_increment, key(a));
create table t2(b int auto_increment, c int, key(b));
eval create table t1(a int auto_increment, key(a)) engine=$engine_type;
eval create table t2(b int auto_increment, c int, key(b)) engine=$engine_type;
insert into t1 values (10);
insert into t1 values (null),(null),(null);
insert into t2 values (5,0);
......@@ -94,7 +101,7 @@ sync_with_master;
connection master;
SET TIMESTAMP=1000000000;
CREATE TABLE t1 ( a INT UNIQUE );
eval CREATE TABLE t1 ( a INT UNIQUE ) engine=$engine_type;
SET FOREIGN_KEY_CHECKS=0;
# Duplicate Key Errors
--error 1022, ER_DUP_ENTRY
......@@ -109,8 +116,8 @@ sync_slave_with_master;
--echo #
connection master;
create table t1(a int auto_increment, key(a));
create table t2(a int);
eval create table t1(a int auto_increment, key(a)) engine=$engine_type;
eval create table t2(a int) engine=$engine_type;
insert into t1 (a) values (null);
insert into t2 (a) select a from t1 where a is null;
insert into t2 (a) select a from t1 where a is null;
......@@ -139,11 +146,11 @@ drop function if exists bug15728_insert;
drop table if exists t1, t2;
--enable_warnings
create table t1 (
eval create table t1 (
id int not null auto_increment,
last_id int,
primary key (id)
);
) engine=$engine_type;
create function bug15728() returns int(11)
return last_insert_id();
......@@ -152,11 +159,11 @@ insert into t1 (last_id) values (last_insert_id());
insert into t1 (last_id) values (bug15728());
# Check that nested call replicates too.
create table t2 (
eval create table t2 (
id int not null auto_increment,
last_id int,
primary key (id)
);
) engine=$engine_type;
delimiter |;
create function bug15728_insert() returns int(11) modifies sql data
begin
......@@ -215,8 +222,8 @@ drop procedure foo;
# test of BUG#20188 REPLACE or ON DUPLICATE KEY UPDATE in
# auto_increment breaks binlog
create table t1 (n int primary key auto_increment not null,
b int, unique(b));
eval create table t1 (n int primary key auto_increment not null,
b int, unique(b)) engine=$engine_type;
# First, test that we do not call restore_auto_increment() too early
# in write_record():
......@@ -257,8 +264,8 @@ select * from t1 order by n;
# and now test for the bug:
connection master;
drop table t1;
create table t1 (n int primary key auto_increment not null,
b int, unique(b));
eval create table t1 (n int primary key auto_increment not null,
b int, unique(b)) engine=$engine_type;
insert into t1 values(null,100);
select * from t1 order by n;
sync_slave_with_master;
......@@ -282,29 +289,29 @@ sync_slave_with_master;
connection master;
# testcase with INSERT VALUES
CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY AUTO_INCREMENT, b INT,
UNIQUE(b));
eval CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY AUTO_INCREMENT, b INT,
UNIQUE(b)) ENGINE=$engine_type;
INSERT INTO t1(b) VALUES(1),(1),(2) ON DUPLICATE KEY UPDATE t1.b=10;
SELECT * FROM t1;
SELECT * FROM t1 ORDER BY a;
sync_slave_with_master;
SELECT * FROM t1;
SELECT * FROM t1 ORDER BY a;
connection master;
drop table t1;
# tescase with INSERT SELECT
CREATE TABLE t1 (
eval CREATE TABLE t1 (
id bigint(20) unsigned NOT NULL auto_increment,
field_1 int(10) unsigned NOT NULL,
field_2 varchar(255) NOT NULL,
field_3 varchar(255) NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY field_1 (field_1, field_2)
);
CREATE TABLE t2 (
) ENGINE=$engine_type;
eval CREATE TABLE t2 (
field_a int(10) unsigned NOT NULL,
field_b varchar(255) NOT NULL,
field_c varchar(255) NOT NULL
);
) ENGINE=$engine_type;
INSERT INTO t2 (field_a, field_b, field_c) VALUES (1, 'a', '1a');
INSERT INTO t2 (field_a, field_b, field_c) VALUES (2, 'b', '2b');
INSERT INTO t2 (field_a, field_b, field_c) VALUES (3, 'c', '3c');
......@@ -324,9 +331,9 @@ SELECT t2.field_a, t2.field_b, t2.field_c
FROM t2
ON DUPLICATE KEY UPDATE
t1.field_3 = t2.field_c;
SELECT * FROM t1;
SELECT * FROM t1 ORDER BY id;
sync_slave_with_master;
SELECT * FROM t1;
SELECT * FROM t1 ORDER BY id;
connection master;
drop table t1, t2;
......@@ -348,17 +355,17 @@ DROP TABLE IF EXISTS t1, t2;
# Reset result of LAST_INSERT_ID().
SELECT LAST_INSERT_ID(0);
CREATE TABLE t1 (
eval CREATE TABLE t1 (
id INT NOT NULL DEFAULT 0,
last_id INT,
PRIMARY KEY (id)
);
) ENGINE=$engine_type;
CREATE TABLE t2 (
eval CREATE TABLE t2 (
id INT NOT NULL AUTO_INCREMENT,
last_id INT,
PRIMARY KEY (id)
);
) ENGINE=$engine_type;
delimiter |;
CREATE PROCEDURE p1()
......@@ -369,12 +376,12 @@ END|
delimiter ;|
CALL p1();
SELECT * FROM t1;
SELECT * FROM t2;
SELECT * FROM t1 ORDER BY id;
SELECT * FROM t2 ORDER BY id;
sync_slave_with_master;
SELECT * FROM t1;
SELECT * FROM t2;
SELECT * FROM t1 ORDER BY id;
SELECT * FROM t2 ORDER BY id;
connection master;
......@@ -394,11 +401,11 @@ DROP FUNCTION IF EXISTS f3;
DROP TABLE IF EXISTS t1, t2;
--enable_warnings
CREATE TABLE t1 (
eval CREATE TABLE t1 (
i INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
j INT DEFAULT 0
);
CREATE TABLE t2 (i INT);
) ENGINE=$engine_type;
eval CREATE TABLE t2 (i INT) ENGINE=$engine_type;
delimiter |;
CREATE PROCEDURE p1()
......@@ -443,14 +450,16 @@ UPDATE t1 SET j= -1 WHERE i IS NULL;
# Test statement-based replication of function calls.
INSERT INTO t1 (i) VALUES (NULL);
# Here, we rely on having set @@concurrent_insert= 0 (see comment at
# the top of this file).
connection master1;
INSERT INTO t1 (i) VALUES (NULL);
connection master;
SELECT f3();
SELECT * FROM t1;
SELECT * FROM t2;
SELECT * FROM t1 ORDER BY i;
SELECT * FROM t2 ORDER BY i;
sync_slave_with_master;
SELECT * FROM t1;
......@@ -472,11 +481,11 @@ sync_slave_with_master;
# Tests in this file are tightly bound together. Recreate t2.
connection master;
create table t2 (
eval create table t2 (
id int not null auto_increment,
last_id int,
primary key (id)
);
) engine=$engine_type;
# Test for BUG#20341 "stored function inserting into one
......@@ -484,7 +493,8 @@ create table t2 (
connection master;
truncate table t2;
create table t1 (id tinyint primary key); # no auto_increment
# no auto_increment
eval create table t1 (id tinyint primary key) engine=$engine_type;
delimiter |;
create function insid() returns int
......@@ -504,20 +514,20 @@ insert into t2 (id) values(5),(6),(7);
delete from t2 where id>=5;
set sql_log_bin=1;
insert into t1 select insid();
select * from t1;
select * from t2;
select * from t1 order by id;
select * from t2 order by id;
sync_slave_with_master;
select * from t1;
select * from t2;
select * from t1 order by id;
select * from t2 order by id;
connection master;
drop table t1;
drop function insid;
truncate table t2;
create table t1 (n int primary key auto_increment not null,
b int, unique(b));
eval create table t1 (n int primary key auto_increment not null,
b int, unique(b)) engine=$engine_type;
delimiter |;
create procedure foo()
begin
......@@ -528,14 +538,15 @@ begin
end|
delimiter ;|
call foo();
select * from t1;
select * from t2;
select * from t1 order by n;
select * from t2 order by id;
sync_slave_with_master;
select * from t1;
select * from t2;
select * from t1 order by n;
select * from t2 order by id;
connection master;
drop table t1, t2;
drop procedure foo;
SET @@global.concurrent_insert= @old_concurrent_insert;
sync_slave_with_master;
#
# 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 `
drop table if exists `T7`;
drop table if exists `T8`;
drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES sjis;
SET character_set_database = sjis;
CREATE TABLE `T1` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = innodb;
......@@ -18,12 +15,9 @@ CREATE TABLE `
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 `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 `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = heap;
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;
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 = MEMORY;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = MEMORY;
INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T3` VALUES ('ソ十表予構'),('ソ十表予'),('ソ十表'),('ソ十'),('ソ'),('');
......@@ -33,9 +27,6 @@ INSERT INTO `
INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T9` VALUES ('ソ十表予構'),('ソ十表予'),('ソ十表'),('ソ十'),('ソ'),('');
INSERT INTO `T10` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T11` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T12` VALUES ('ソ十表予構'),('ソ十表予'),('ソ十表'),('ソ十'),('ソ'),('');
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T1`;
C1 CHAR_LENGTH(`C1`)
0
......@@ -106,30 +97,6 @@ SELECT `
ソ十表予 4
ソ十表 3
ソ十 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
0
DROP TABLE `T1`;
......@@ -141,6 +108,3 @@ DROP TABLE `
DROP TABLE `T7`;
DROP TABLE `T8`;
DROP TABLE `T9`;
DROP TABLE `T10`;
DROP TABLE `T11`;
DROP TABLE `T12`;
......@@ -7,9 +7,6 @@ drop table if exists `
drop table if exists `T7`;
drop table if exists `T8`;
drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES ujis;
SET character_set_database = ucs2;
SET collation_connection = ucs2_general_ci;
......@@ -19,12 +16,9 @@ CREATE TABLE `
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 `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 `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = heap;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = heap;
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;
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 = MEMORY;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ucs2 engine = MEMORY;
INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T3` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
......@@ -34,9 +28,6 @@ INSERT INTO `
INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T9` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `T10` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T11` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T12` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T1`;
C1 CHAR_LENGTH(`C1`)
0
......@@ -107,30 +98,6 @@ SELECT `
龔龖龗龞 4
龔龖龗 3
龔龖 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
0
DROP TABLE `T1`;
......@@ -142,6 +109,3 @@ DROP TABLE `
DROP TABLE `T7`;
DROP TABLE `T8`;
DROP TABLE `T9`;
DROP TABLE `T10`;
DROP TABLE `T11`;
DROP TABLE `T12`;
......@@ -7,9 +7,6 @@ drop table if exists `
drop table if exists `T7`;
drop table if exists `T8`;
drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES ujis;
SET character_set_database = ujis;
CREATE TABLE `T1` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = innodb;
......@@ -18,12 +15,9 @@ CREATE TABLE `
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 `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 `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = heap;
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;
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 = MEMORY;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = ujis engine = MEMORY;
INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T3` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
......@@ -33,9 +27,6 @@ INSERT INTO `
INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T9` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `T10` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T11` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T12` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T1`;
C1 CHAR_LENGTH(`C1`)
0
......@@ -106,30 +97,6 @@ SELECT `
龔龖龗龞 4
龔龖龗 3
龔龖 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
0
DROP TABLE `T1`;
......@@ -141,6 +108,3 @@ DROP TABLE `
DROP TABLE `T7`;
DROP TABLE `T8`;
DROP TABLE `T9`;
DROP TABLE `T10`;
DROP TABLE `T11`;
DROP TABLE `T12`;
......@@ -7,9 +7,6 @@ drop table if exists `T6`;
drop table if exists `T7`;
drop table if exists `T8`;
drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES utf8;
SET character_set_database = utf8;
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
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 `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 `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = heap;
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;
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 = MEMORY;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = utf8 engine = MEMORY;
INSERT INTO `T1` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T2` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T3` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
......@@ -33,9 +27,6 @@ INSERT INTO `T6` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),(
INSERT INTO `T7` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T8` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T9` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `T10` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `T11` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `T12` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T1`;
C1 CHAR_LENGTH(`C1`)
0
......@@ -106,30 +97,6 @@ SELECT `C1`, CHAR_LENGTH(`C1`) FROM `T9`;
龔龖龗龞 4
龔龖龗 3
龔龖 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
0
DROP TABLE `T1`;
......@@ -141,6 +108,3 @@ DROP TABLE `T6`;
DROP TABLE `T7`;
DROP TABLE `T8`;
DROP TABLE `T9`;
DROP TABLE `T10`;
DROP TABLE `T11`;
DROP TABLE `T12`;
......@@ -7,9 +7,6 @@ drop table if exists `
drop table if exists `sV`;
drop table if exists `sW`;
drop table if exists `sX`;
drop table if exists `sPO`;
drop table if exists `sPP`;
drop table if exists `sPQ`;
SET NAMES sjis;
SET character_set_database = sjis;
CREATE TABLE `sP` (`bP` char(20)) DEFAULT CHARSET = sjis engine = innodb;
......@@ -18,12 +15,9 @@ CREATE TABLE `
CREATE TABLE `sS` (`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 `sV` (`bP` char(20)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `sW` (`bP` char(20)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `sX` (`bP` char(20)) DEFAULT CHARSET = sjis engine = heap;
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;
CREATE TABLE `sV` (`bP` char(20)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `sW` (`bP` char(20)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `sX` (`bP` char(20)) DEFAULT CHARSET = sjis engine = MEMORY;
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_sjis2.dat' INTO TABLE `sR`;
......@@ -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/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/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`;
CHARSET(`bP`)
sjis
......@@ -171,51 +162,6 @@ sjis
SELECT DISTINCT CHARSET(CONVERT(`bP` USING ujis)) FROM `sX`;
CHARSET(CONVERT(`bP` USING 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 `sQ`;
drop table `sR`;
......@@ -225,6 +171,3 @@ drop table `
drop table `sV`;
drop table `sW`;
drop table `sX`;
drop table `sPO`;
drop table `sPP`;
drop table `sPQ`;
......@@ -7,9 +7,6 @@ drop table if exists `
drop table if exists `T7`;
drop table if exists `T8`;
drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES ujis;
SET character_set_database = ucs2;
CREATE TABLE `T1` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = innodb;
......@@ -18,12 +15,9 @@ CREATE TABLE `
CREATE TABLE `T4` (`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 `T7` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = heap;
CREATE TABLE `T8` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = heap;
CREATE TABLE `T9` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = heap;
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;
CREATE TABLE `T7` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `T8` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = MEMORY;
CREATE TABLE `T9` (`C1` char(20)) DEFAULT CHARSET = ucs2 engine = MEMORY;
INSERT INTO `T1` VALUES
('PQRSTUVWXYZ[\\]^_')
,(' 。「」、・ヲァィゥェォャュョッ')
......@@ -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`;
CHARSET(`C1`)
ucs2
......@@ -247,51 +219,6 @@ sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T9`;
CHARSET(CONVERT(`C1` USING 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 `T2`;
drop table `T3`;
......@@ -301,6 +228,3 @@ drop table `
drop table `T7`;
drop table `T8`;
drop table `T9`;
drop table `T10`;
drop table `T11`;
drop table `T12`;
......@@ -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 `ԣ`;
SET NAMES ujis;
SET character_set_database = ujis;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = innodb;
......@@ -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 = heap;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = heap;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = heap;
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;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = MEMORY;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = MEMORY;
CREATE TABLE `ԣ` (`ã` char(20)) DEFAULT CHARSET = ujis engine = MEMORY;
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 `ԣ`;
......@@ -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/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/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 `ԣ`;
CHARSET(`ã`)
ujis
......@@ -171,51 +162,6 @@ sjis
SELECT DISTINCT CHARSET(CONVERT(`ã` USING ujis)) FROM `ԣ`;
CHARSET(CONVERT(`ã` USING 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 `ԣ`;
......@@ -225,6 +171,3 @@ drop table `
drop table `ԣ`;
drop table `ԣ`;
drop table `ԣ`;
drop table `ԣ`;
drop table `ԣ`;
drop table `ԣ`;
......@@ -7,9 +7,6 @@ drop table if exists `T6`;
drop table if exists `T7`;
drop table if exists `T8`;
drop table if exists `T9`;
drop table if exists `T10`;
drop table if exists `T11`;
drop table if exists `T12`;
SET NAMES utf8;
SET character_set_database = utf8;
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
CREATE TABLE `T4` (`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 `T7` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `T8` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = heap;
CREATE TABLE `T9` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = heap;
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;
CREATE TABLE `T7` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = MEMORY;
CREATE TABLE `T8` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = MEMORY;
CREATE TABLE `T9` (`C1` char(20)) DEFAULT CHARSET = utf8 engine = MEMORY;
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/jisx0212_utf8.dat' INTO TABLE `T3`;
......@@ -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/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/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`;
CHARSET(`C1`)
utf8
......@@ -171,51 +162,6 @@ sjis
SELECT DISTINCT CHARSET(CONVERT(`C1` USING ujis)) FROM `T9`;
CHARSET(CONVERT(`C1` USING 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 `T2`;
drop table `T3`;
......@@ -225,6 +171,3 @@ drop table `T6`;
drop table `T7`;
drop table `T8`;
drop table `T9`;
drop table `T10`;
drop table `T11`;
drop table `T12`;
......@@ -8,11 +8,12 @@ CREATE DATABASE `
CREATE DATABASE `ソ十表`;
SHOW DATABASES;
Database
mysql
test
information_schema
ソ十表
日本語
ニホンゴ
mysql
test
USE `ニホンゴ`;
USE `日本語`;
USE `ソ十表`;
......
......@@ -9,11 +9,12 @@ CREATE DATABASE `
CREATE DATABASE `龔龖龗`;
SHOW DATABASES;
Database
mysql
test
information_schema
日本語
龔龖龗
ニホンゴ
mysql
test
USE `ニホンゴ`;
USE `日本語`;
USE `龔龖龗`;
......
......@@ -8,11 +8,12 @@ CREATE DATABASE `
CREATE DATABASE `龔龖龗`;
SHOW DATABASES;
Database
mysql
test
information_schema
日本語
龔龖龗
ニホンゴ
mysql
test
USE `ニホンゴ`;
USE `日本語`;
USE `龔龖龗`;
......
......@@ -8,11 +8,12 @@ CREATE DATABASE `日本語`;
CREATE DATABASE `龔龖龗`;
SHOW DATABASES;
Database
mysql
test
information_schema
日本語
龔龖龗
ニホンゴ
mysql
test
USE `ニホンゴ`;
USE `日本語`;
USE `龔龖龗`;
......
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,7 +7,6 @@ drop table if exists `
drop table if exists `T7`;
drop table if exists `T8`;
drop table if exists `T9`;
drop table if exists `T10`;
SET NAMES sjis;
SET character_set_database = sjis;
CREATE TABLE `T1` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = innodb;
......@@ -16,12 +15,9 @@ CREATE TABLE `
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 `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 `T8` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = heap;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = heap;
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;
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 = MEMORY;
CREATE TABLE `T9` (`C1` char(5), INDEX(`C1`)) DEFAULT CHARSET = sjis engine = MEMORY;
INSERT INTO `T1` VALUES ('アイウエオ');
INSERT INTO `T2` VALUES ('あいうえお');
INSERT INTO `T3` VALUES ('ソ十表予構');
......@@ -31,9 +27,6 @@ INSERT INTO `
INSERT INTO `T7` VALUES ('アイウエオ');
INSERT INTO `T8` VALUES ('あいうえお');
INSERT INTO `T9` VALUES ('ソ十表予構');
INSERT INTO `T10` VALUES ('アイウエオ');
INSERT INTO `T11` VALUES ('あいうえお');
INSERT INTO `T12` VALUES ('ソ十表予構');
SELECT INSTR(`C1`,'ア') from `T1`;
INSTR(`C1`,'ア')
1
......@@ -196,60 +189,6 @@ INSTR(`
SELECT INSTR(`C1`,'噂') from `T9`;
INSTR(`C1`,'噂')
0
SELECT INSTR(`C1`,'ア') from `T10`;
INSTR(`C1`,'ア')
1
SELECT INSTR(`C1`,'イ') from `T10`;
INSTR(`C1`,'イ')
2
SELECT INSTR(`C1`,'ウ') from `T10`;
INSTR(`C1`,'ウ')
3
SELECT INSTR(`C1`,'エ') from `T10`;
INSTR(`C1`,'エ')
4
SELECT INSTR(`C1`,'オ') from `T10`;
INSTR(`C1`,'オ')
5
SELECT INSTR(`C1`,'ン') from `T10`;
INSTR(`C1`,'ン')
0
SELECT INSTR(`C1`,'あ') from `T11`;
INSTR(`C1`,'あ')
1
SELECT INSTR(`C1`,'い') from `T11`;
INSTR(`C1`,'い')
2
SELECT INSTR(`C1`,'う') from `T11`;
INSTR(`C1`,'う')
3
SELECT INSTR(`C1`,'え') from `T11`;
INSTR(`C1`,'え')
4
SELECT INSTR(`C1`,'お') from `T11`;
INSTR(`C1`,'お')
5
SELECT INSTR(`C1`,'ん') from `T11`;
INSTR(`C1`,'ん')
0
SELECT INSTR(`C1`,'ソ') from `T12`;
INSTR(`C1`,'ソ')
1
SELECT INSTR(`C1`,'十') from `T12`;
INSTR(`C1`,'十')
2
SELECT INSTR(`C1`,'表') from `T12`;
INSTR(`C1`,'表')
3
SELECT INSTR(`C1`,'予') from `T12`;
INSTR(`C1`,'予')
4
SELECT INSTR(`C1`,'構') from `T12`;
INSTR(`C1`,'構')
5
SELECT INSTR(`C1`,'噂') from `T12`;
INSTR(`C1`,'噂')
0
DROP TABLE `T1`;
DROP TABLE `T2`;
DROP TABLE `T3`;
......@@ -259,6 +198,3 @@ DROP TABLE `
DROP TABLE `T7`;
DROP TABLE `T8`;
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.
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