mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 15:24:16 +01:00
136 lines
6.4 KiB
Text
136 lines
6.4 KiB
Text
|
--source include/have_ujis.inc
|
|||
|
|
|||
|
--disable_warnings
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
drop table if exists `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
--enable_warnings
|
|||
|
|
|||
|
#
|
|||
|
# Test CHARSET() function with Japanese characters in ujis encoding
|
|||
|
#
|
|||
|
|
|||
|
SET NAMES ujis;
|
|||
|
SET character_set_database = ujis;
|
|||
|
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20)) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20)) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20)) DEFAULT CHARSET = ujis engine = innodb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20)) DEFAULT CHARSET = ujis engine = myisam;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20)) DEFAULT CHARSET = ujis engine = myisam;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20)) DEFAULT CHARSET = ujis engine = myisam;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20)) DEFAULT CHARSET = ujis engine = heap;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20)) DEFAULT CHARSET = ujis engine = heap;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD>` (`<60>ã<EFBFBD>` char(20)) DEFAULT CHARSET = ujis engine = heap;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` (`<60>ã<EFBFBD>` char(20)) DEFAULT CHARSET = ujis engine = bdb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` (`<60>ã<EFBFBD>` char(20)) DEFAULT CHARSET = ujis engine = bdb;
|
|||
|
CREATE TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>` (`<60>ã<EFBFBD>` char(20)) DEFAULT CHARSET = ujis engine = bdb;
|
|||
|
|
|||
|
#Load the following data in each table
|
|||
|
# jisx0201 hankaku-katakana data
|
|||
|
# jisx0208 data
|
|||
|
# jisx0212 supplemental character data
|
|||
|
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0212_ujis.dat' INTO TABLE `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
|
|||
|
#InnoDB
|
|||
|
SELECT DISTINCT CHARSET(`<60>ã<EFBFBD>`) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(`<60>ã<EFBFBD>`) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(`<60>ã<EFBFBD>`) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING utf8)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ucs2)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING sjis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ujis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING utf8)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ucs2)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING sjis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ujis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING utf8)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ucs2)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING sjis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ujis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
|
|||
|
#MyISAM
|
|||
|
SELECT DISTINCT CHARSET(`<60>ã<EFBFBD>`) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(`<60>ã<EFBFBD>`) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(`<60>ã<EFBFBD>`) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING utf8)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ucs2)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING sjis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ujis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING utf8)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ucs2)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING sjis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ujis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING utf8)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ucs2)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING sjis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ujis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
|
|||
|
#Heap
|
|||
|
SELECT DISTINCT CHARSET(`<60>ã<EFBFBD>`) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(`<60>ã<EFBFBD>`) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(`<60>ã<EFBFBD>`) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING utf8)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ucs2)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING sjis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ujis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING utf8)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ucs2)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING sjis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ujis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING utf8)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ucs2)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING sjis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ujis)) FROM `<60>ԣ<EFBFBD>`;
|
|||
|
|
|||
|
#BDB
|
|||
|
SELECT DISTINCT CHARSET(`<60>ã<EFBFBD>`) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(`<60>ã<EFBFBD>`) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(`<60>ã<EFBFBD>`) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING utf8)) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ucs2)) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING sjis)) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ujis)) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING utf8)) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ucs2)) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING sjis)) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ujis)) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING utf8)) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ucs2)) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING sjis)) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
SELECT DISTINCT CHARSET(CONVERT(`<60>ã<EFBFBD>` USING ujis)) FROM `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
|
|||
|
drop table `<60>ԣ<EFBFBD>`;
|
|||
|
drop table `<60>ԣ<EFBFBD>`;
|
|||
|
drop table `<60>ԣ<EFBFBD>`;
|
|||
|
drop table `<60>ԣ<EFBFBD>`;
|
|||
|
drop table `<60>ԣ<EFBFBD>`;
|
|||
|
drop table `<60>ԣ<EFBFBD>`;
|
|||
|
drop table `<60>ԣ<EFBFBD>`;
|
|||
|
drop table `<60>ԣ<EFBFBD>`;
|
|||
|
drop table `<60>ԣ<EFBFBD>`;
|
|||
|
drop table `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
drop table `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|
|||
|
drop table `<60>ԣ<EFBFBD><D4A3><EFBFBD>`;
|