2008-05-15 18:01:13 +02:00
|
|
|
|
--source include/have_sjis.inc
|
|
|
|
|
--source include/have_ucs2.inc
|
|
|
|
|
--source include/have_ujis.inc
|
|
|
|
|
--source include/have_utf8.inc
|
|
|
|
|
--source include/have_innodb.inc
|
2005-01-07 09:48:38 +01:00
|
|
|
|
--character_set sjis
|
|
|
|
|
--disable_warnings
|
|
|
|
|
drop table if exists `<60>s<EFBFBD>P`;
|
|
|
|
|
drop table if exists `<60>s<EFBFBD>Q`;
|
|
|
|
|
drop table if exists `<60>s<EFBFBD>R`;
|
|
|
|
|
drop table if exists `<60>s<EFBFBD>S`;
|
|
|
|
|
drop table if exists `<60>s<EFBFBD>T`;
|
|
|
|
|
drop table if exists `<60>s<EFBFBD>U`;
|
|
|
|
|
drop table if exists `<60>s<EFBFBD>V`;
|
|
|
|
|
drop table if exists `<60>s<EFBFBD>W`;
|
|
|
|
|
drop table if exists `<60>s<EFBFBD>X`;
|
|
|
|
|
--enable_warnings
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Test CHARSET() function with Japanese characters in sjis encoding
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
SET NAMES sjis;
|
|
|
|
|
SET character_set_database = sjis;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>P` (`<60>b<EFBFBD>P` char(20)) DEFAULT CHARSET = sjis engine = innodb;
|
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>Q` (`<60>b<EFBFBD>P` char(20)) DEFAULT CHARSET = sjis engine = innodb;
|
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>R` (`<60>b<EFBFBD>P` char(20)) DEFAULT CHARSET = sjis engine = innodb;
|
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>S` (`<60>b<EFBFBD>P` char(20)) DEFAULT CHARSET = sjis engine = myisam;
|
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>T` (`<60>b<EFBFBD>P` char(20)) DEFAULT CHARSET = sjis engine = myisam;
|
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>U` (`<60>b<EFBFBD>P` char(20)) DEFAULT CHARSET = sjis engine = myisam;
|
2008-05-15 18:01:13 +02:00
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>V` (`<60>b<EFBFBD>P` char(20)) DEFAULT CHARSET = sjis engine = MEMORY;
|
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>W` (`<60>b<EFBFBD>P` char(20)) DEFAULT CHARSET = sjis engine = MEMORY;
|
|
|
|
|
CREATE TABLE `<60>s<EFBFBD>X` (`<60>b<EFBFBD>P` char(20)) DEFAULT CHARSET = sjis engine = MEMORY;
|
2005-01-07 09:48:38 +01:00
|
|
|
|
|
|
|
|
|
#Load the following data in each table
|
|
|
|
|
# jisx0201 hankaku-katakana data
|
|
|
|
|
# jisx0208 data
|
|
|
|
|
|
|
|
|
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `<60>s<EFBFBD>P`;
|
|
|
|
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `<60>s<EFBFBD>Q`;
|
|
|
|
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `<60>s<EFBFBD>R`;
|
|
|
|
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `<60>s<EFBFBD>S`;
|
|
|
|
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `<60>s<EFBFBD>T`;
|
|
|
|
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `<60>s<EFBFBD>U`;
|
|
|
|
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `<60>s<EFBFBD>V`;
|
|
|
|
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `<60>s<EFBFBD>W`;
|
|
|
|
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `<60>s<EFBFBD>X`;
|
|
|
|
|
|
|
|
|
|
#InnoDB
|
|
|
|
|
SELECT DISTINCT CHARSET(`<60>b<EFBFBD>P`) FROM `<60>s<EFBFBD>P`;
|
|
|
|
|
SELECT DISTINCT CHARSET(`<60>b<EFBFBD>P`) FROM `<60>s<EFBFBD>Q`;
|
|
|
|
|
SELECT DISTINCT CHARSET(`<60>b<EFBFBD>P`) FROM `<60>s<EFBFBD>R`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING utf8)) FROM `<60>s<EFBFBD>P`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ucs2)) FROM `<60>s<EFBFBD>P`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING sjis)) FROM `<60>s<EFBFBD>P`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ujis)) FROM `<60>s<EFBFBD>P`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING utf8)) FROM `<60>s<EFBFBD>Q`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ucs2)) FROM `<60>s<EFBFBD>Q`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING sjis)) FROM `<60>s<EFBFBD>Q`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ujis)) FROM `<60>s<EFBFBD>Q`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING utf8)) FROM `<60>s<EFBFBD>R`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ucs2)) FROM `<60>s<EFBFBD>R`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING sjis)) FROM `<60>s<EFBFBD>R`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ujis)) FROM `<60>s<EFBFBD>R`;
|
|
|
|
|
|
|
|
|
|
#MyISAM
|
|
|
|
|
SELECT DISTINCT CHARSET(`<60>b<EFBFBD>P`) FROM `<60>s<EFBFBD>S`;
|
|
|
|
|
SELECT DISTINCT CHARSET(`<60>b<EFBFBD>P`) FROM `<60>s<EFBFBD>T`;
|
|
|
|
|
SELECT DISTINCT CHARSET(`<60>b<EFBFBD>P`) FROM `<60>s<EFBFBD>U`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING utf8)) FROM `<60>s<EFBFBD>S`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ucs2)) FROM `<60>s<EFBFBD>S`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING sjis)) FROM `<60>s<EFBFBD>S`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ujis)) FROM `<60>s<EFBFBD>S`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING utf8)) FROM `<60>s<EFBFBD>T`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ucs2)) FROM `<60>s<EFBFBD>T`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING sjis)) FROM `<60>s<EFBFBD>T`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ujis)) FROM `<60>s<EFBFBD>T`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING utf8)) FROM `<60>s<EFBFBD>U`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ucs2)) FROM `<60>s<EFBFBD>U`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING sjis)) FROM `<60>s<EFBFBD>U`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ujis)) FROM `<60>s<EFBFBD>U`;
|
|
|
|
|
|
2008-05-15 18:01:13 +02:00
|
|
|
|
#MEMORY
|
2005-01-07 09:48:38 +01:00
|
|
|
|
SELECT DISTINCT CHARSET(`<60>b<EFBFBD>P`) FROM `<60>s<EFBFBD>V`;
|
|
|
|
|
SELECT DISTINCT CHARSET(`<60>b<EFBFBD>P`) FROM `<60>s<EFBFBD>W`;
|
|
|
|
|
SELECT DISTINCT CHARSET(`<60>b<EFBFBD>P`) FROM `<60>s<EFBFBD>X`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING utf8)) FROM `<60>s<EFBFBD>V`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ucs2)) FROM `<60>s<EFBFBD>V`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING sjis)) FROM `<60>s<EFBFBD>V`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ujis)) FROM `<60>s<EFBFBD>V`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING utf8)) FROM `<60>s<EFBFBD>W`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ucs2)) FROM `<60>s<EFBFBD>W`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING sjis)) FROM `<60>s<EFBFBD>W`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ujis)) FROM `<60>s<EFBFBD>W`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING utf8)) FROM `<60>s<EFBFBD>X`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ucs2)) FROM `<60>s<EFBFBD>X`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING sjis)) FROM `<60>s<EFBFBD>X`;
|
|
|
|
|
SELECT DISTINCT CHARSET(CONVERT(`<60>b<EFBFBD>P` USING ujis)) FROM `<60>s<EFBFBD>X`;
|
|
|
|
|
|
|
|
|
|
drop table `<60>s<EFBFBD>P`;
|
|
|
|
|
drop table `<60>s<EFBFBD>Q`;
|
|
|
|
|
drop table `<60>s<EFBFBD>R`;
|
|
|
|
|
drop table `<60>s<EFBFBD>S`;
|
|
|
|
|
drop table `<60>s<EFBFBD>T`;
|
|
|
|
|
drop table `<60>s<EFBFBD>U`;
|
|
|
|
|
drop table `<60>s<EFBFBD>V`;
|
|
|
|
|
drop table `<60>s<EFBFBD>W`;
|
|
|
|
|
drop table `<60>s<EFBFBD>X`;
|