mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
464c2de70a
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
93 lines
3.7 KiB
Text
93 lines
3.7 KiB
Text
--source include/have_sjis.inc
|
||
--source include/have_innodb.inc
|
||
--character_set sjis
|
||
--disable_warnings
|
||
drop table if exists `‚s‚P`;
|
||
drop table if exists `‚s‚Q`;
|
||
drop table if exists `‚s‚R`;
|
||
drop table if exists `‚s‚S`;
|
||
drop table if exists `‚s‚T`;
|
||
drop table if exists `‚s‚U`;
|
||
drop table if exists `‚s‚V`;
|
||
drop table if exists `‚s‚W`;
|
||
drop table if exists `‚s‚X`;
|
||
--enable_warnings
|
||
|
||
#
|
||
# Test Displaying Japanese charact using WHERE condtion in sjis encoding
|
||
#
|
||
|
||
SET NAMES sjis;
|
||
SET character_set_database = sjis;
|
||
|
||
CREATE TABLE `‚s‚P` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = innodb;
|
||
CREATE TABLE `‚s‚Q` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = innodb;
|
||
CREATE TABLE `‚s‚R` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = innodb;
|
||
CREATE TABLE `‚s‚S` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = myisam;
|
||
CREATE TABLE `‚s‚T` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = myisam;
|
||
CREATE TABLE `‚s‚U` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = myisam;
|
||
CREATE TABLE `‚s‚V` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = MEMORY;
|
||
CREATE TABLE `‚s‚W` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = MEMORY;
|
||
CREATE TABLE `‚s‚X` (`‚b‚P` char(20), INDEX(`‚b‚P`)) DEFAULT CHARSET = sjis engine = MEMORY;
|
||
|
||
#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_sjis.dat' INTO TABLE `‚s‚P`;
|
||
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `‚s‚Q`;
|
||
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `‚s‚R`;
|
||
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `‚s‚S`;
|
||
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `‚s‚T`;
|
||
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `‚s‚U`;
|
||
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `‚s‚V`;
|
||
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `‚s‚W`;
|
||
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `‚s‚X`;
|
||
|
||
#InnoDB
|
||
SELECT * FROM `‚s‚P` WHERE `‚b‚P` = '°±²³´µ¶·¸¹º»¼½¾¿';
|
||
SELECT * FROM `‚s‚Q` WHERE `‚b‚P` = '<27>E‚Ÿ‚ ‚¡‚¢‚£‚¤‚¥‚¦‚§‚¨‚©‚ª‚«‚¬‚‚®‚¯‚°‚±';
|
||
SELECT * FROM `‚s‚R` WHERE `‚b‚P` = 'ƒ\<5C>\•\—\<5C>\‰\Ž\<5C>\“\”\–\˜\‘\’\™\š\›\œ\<5C>\ž\';
|
||
|
||
#MyISAM
|
||
SELECT * FROM `‚s‚S` WHERE `‚b‚P` = '°±²³´µ¶·¸¹º»¼½¾¿';
|
||
SELECT * FROM `‚s‚T` WHERE `‚b‚P` = '<27>E‚Ÿ‚ ‚¡‚¢‚£‚¤‚¥‚¦‚§‚¨‚©‚ª‚«‚¬‚‚®‚¯‚°‚±';
|
||
SELECT * FROM `‚s‚U` WHERE `‚b‚P` = 'ƒ\<5C>\•\—\<5C>\‰\Ž\<5C>\“\”\–\˜\‘\’\™\š\›\œ\<5C>\ž\';
|
||
|
||
#MEMORY
|
||
SELECT * FROM `‚s‚V` WHERE `‚b‚P` = '°±²³´µ¶·¸¹º»¼½¾¿';
|
||
SELECT * FROM `‚s‚W` WHERE `‚b‚P` = '<27>E‚Ÿ‚ ‚¡‚¢‚£‚¤‚¥‚¦‚§‚¨‚©‚ª‚«‚¬‚‚®‚¯‚°‚±';
|
||
SELECT * FROM `‚s‚X` WHERE `‚b‚P` = 'ƒ\<5C>\•\—\<5C>\‰\Ž\<5C>\“\”\–\˜\‘\’\™\š\›\œ\<5C>\ž\';
|
||
|
||
#Test to distinguish 0x9353 and 0x9373
|
||
--disable_warnings
|
||
DROP TABLE IF EXISTS t1;
|
||
DROP TABLE IF EXISTS t2;
|
||
DROP TABLE IF EXISTS t3;
|
||
--enable_warnings
|
||
CREATE TABLE t1(c1 char(1)) default charset = sjis engine=innodb;
|
||
CREATE TABLE t2(c1 char(1)) default charset = sjis engine=myisam;
|
||
CREATE TABLE t3(c1 char(1)) default charset = sjis engine=MEMORY;
|
||
INSERT INTO t1 VALUES('“S'),('“s');
|
||
INSERT INTO t2 VALUES('“S'),('“s');
|
||
INSERT INTO t3 VALUES('“S'),('“s');
|
||
SELECT * FROM t1 WHERE c1 = '“S';
|
||
SELECT * FROM t2 WHERE c1 = '“S';
|
||
SELECT * FROM t3 WHERE c1 = '“S';
|
||
SELECT * FROM t1 WHERE c1 = '“s';
|
||
SELECT * FROM t2 WHERE c1 = '“s';
|
||
SELECT * FROM t3 WHERE c1 = '“s';
|
||
DROP TABLE t1;
|
||
DROP TABLE t2;
|
||
DROP TABLE t3;
|
||
|
||
DROP TABLE `‚s‚P`;
|
||
DROP TABLE `‚s‚Q`;
|
||
DROP TABLE `‚s‚R`;
|
||
DROP TABLE `‚s‚S`;
|
||
DROP TABLE `‚s‚T`;
|
||
DROP TABLE `‚s‚U`;
|
||
DROP TABLE `‚s‚V`;
|
||
DROP TABLE `‚s‚W`;
|
||
DROP TABLE `‚s‚X`;
|