mariadb/mysql-test/suite/jp/t/jp_substring_ujis.test
mleich@five.local.lan 464c2de70a 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
2008-05-15 18:01:13 +02:00

315 lines
15 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--source include/have_ujis.inc
--source include/have_innodb.inc
--disable_warnings
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 ``;
--enable_warnings
#
# Test SUBSTRING() function with Japanese character in ujis encoding
#
SET NAMES ujis;
SET character_set_database = ujis;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = innodb;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = myisam;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = MEMORY;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = MEMORY;
CREATE TABLE `` (`` char(5), INDEX(``)) DEFAULT CHARSET = ujis engine = MEMORY;
INSERT INTO `` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
INSERT INTO `` VALUES ('アイウエオ'),('アイウエ'),('アイウ'),('アイ'),('ア'),('');
INSERT INTO `` VALUES ('あいうえお'),('あいうえ'),('あいう'),('あい'),('あ'),('');
INSERT INTO `` VALUES ('龔龖龗龞龡'),('龔龖龗龞'),('龔龖龗'),('龔龖'),('龔'),('');
#InnoDB
SELECT ``, SUBSTRING(``,0) FROM ``;
SELECT ``, SUBSTRING(``,1) FROM ``;
SELECT ``, SUBSTRING(``,2) FROM ``;
SELECT ``, SUBSTRING(``,3) FROM ``;
SELECT ``, SUBSTRING(``,4) FROM ``;
SELECT ``, SUBSTRING(``,5) FROM ``;
SELECT ``, SUBSTRING(``,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 6) FROM ``;
SELECT ``, SUBSTRING(``,1,0) FROM ``;
SELECT ``, SUBSTRING(``,1,1) FROM ``;
SELECT ``, SUBSTRING(``,1,2) FROM ``;
SELECT ``, SUBSTRING(``,1,3) FROM ``;
SELECT ``, SUBSTRING(``,1,4) FROM ``;
SELECT ``, SUBSTRING(``,1,5) FROM ``;
SELECT ``, SUBSTRING(``,1,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 6) FROM ``;
SELECT ``, SUBSTRING(``,0) FROM ``;
SELECT ``, SUBSTRING(``,1) FROM ``;
SELECT ``, SUBSTRING(``,2) FROM ``;
SELECT ``, SUBSTRING(``,3) FROM ``;
SELECT ``, SUBSTRING(``,4) FROM ``;
SELECT ``, SUBSTRING(``,5) FROM ``;
SELECT ``, SUBSTRING(``,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 6) FROM ``;
SELECT ``, SUBSTRING(``,1,0) FROM ``;
SELECT ``, SUBSTRING(``,1,1) FROM ``;
SELECT ``, SUBSTRING(``,1,2) FROM ``;
SELECT ``, SUBSTRING(``,1,3) FROM ``;
SELECT ``, SUBSTRING(``,1,4) FROM ``;
SELECT ``, SUBSTRING(``,1,5) FROM ``;
SELECT ``, SUBSTRING(``,1,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 6) FROM ``;
SELECT ``, SUBSTRING(``,0) FROM ``;
SELECT ``, SUBSTRING(``,1) FROM ``;
SELECT ``, SUBSTRING(``,2) FROM ``;
SELECT ``, SUBSTRING(``,3) FROM ``;
SELECT ``, SUBSTRING(``,4) FROM ``;
SELECT ``, SUBSTRING(``,5) FROM ``;
SELECT ``, SUBSTRING(``,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 6) FROM ``;
SELECT ``, SUBSTRING(``,1,0) FROM ``;
SELECT ``, SUBSTRING(``,1,1) FROM ``;
SELECT ``, SUBSTRING(``,1,2) FROM ``;
SELECT ``, SUBSTRING(``,1,3) FROM ``;
SELECT ``, SUBSTRING(``,1,4) FROM ``;
SELECT ``, SUBSTRING(``,1,5) FROM ``;
SELECT ``, SUBSTRING(``,1,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 6) FROM ``;
#MyISAM
SELECT ``, SUBSTRING(``,0) FROM ``;
SELECT ``, SUBSTRING(``,1) FROM ``;
SELECT ``, SUBSTRING(``,2) FROM ``;
SELECT ``, SUBSTRING(``,3) FROM ``;
SELECT ``, SUBSTRING(``,4) FROM ``;
SELECT ``, SUBSTRING(``,5) FROM ``;
SELECT ``, SUBSTRING(``,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 6) FROM ``;
SELECT ``, SUBSTRING(``,1,0) FROM ``;
SELECT ``, SUBSTRING(``,1,1) FROM ``;
SELECT ``, SUBSTRING(``,1,2) FROM ``;
SELECT ``, SUBSTRING(``,1,3) FROM ``;
SELECT ``, SUBSTRING(``,1,4) FROM ``;
SELECT ``, SUBSTRING(``,1,5) FROM ``;
SELECT ``, SUBSTRING(``,1,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 6) FROM ``;
SELECT ``, SUBSTRING(``,0) FROM ``;
SELECT ``, SUBSTRING(``,1) FROM ``;
SELECT ``, SUBSTRING(``,2) FROM ``;
SELECT ``, SUBSTRING(``,3) FROM ``;
SELECT ``, SUBSTRING(``,4) FROM ``;
SELECT ``, SUBSTRING(``,5) FROM ``;
SELECT ``, SUBSTRING(``,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 6) FROM ``;
SELECT ``, SUBSTRING(``,1,0) FROM ``;
SELECT ``, SUBSTRING(``,1,1) FROM ``;
SELECT ``, SUBSTRING(``,1,2) FROM ``;
SELECT ``, SUBSTRING(``,1,3) FROM ``;
SELECT ``, SUBSTRING(``,1,4) FROM ``;
SELECT ``, SUBSTRING(``,1,5) FROM ``;
SELECT ``, SUBSTRING(``,1,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 6) FROM ``;
SELECT ``, SUBSTRING(``,0) FROM ``;
SELECT ``, SUBSTRING(``,1) FROM ``;
SELECT ``, SUBSTRING(``,2) FROM ``;
SELECT ``, SUBSTRING(``,3) FROM ``;
SELECT ``, SUBSTRING(``,4) FROM ``;
SELECT ``, SUBSTRING(``,5) FROM ``;
SELECT ``, SUBSTRING(``,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 6) FROM ``;
SELECT ``, SUBSTRING(``,1,0) FROM ``;
SELECT ``, SUBSTRING(``,1,1) FROM ``;
SELECT ``, SUBSTRING(``,1,2) FROM ``;
SELECT ``, SUBSTRING(``,1,3) FROM ``;
SELECT ``, SUBSTRING(``,1,4) FROM ``;
SELECT ``, SUBSTRING(``,1,5) FROM ``;
SELECT ``, SUBSTRING(``,1,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 6) FROM ``;
#MEMORY
SELECT ``, SUBSTRING(``,0) FROM ``;
SELECT ``, SUBSTRING(``,1) FROM ``;
SELECT ``, SUBSTRING(``,2) FROM ``;
SELECT ``, SUBSTRING(``,3) FROM ``;
SELECT ``, SUBSTRING(``,4) FROM ``;
SELECT ``, SUBSTRING(``,5) FROM ``;
SELECT ``, SUBSTRING(``,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 6) FROM ``;
SELECT ``, SUBSTRING(``,1,0) FROM ``;
SELECT ``, SUBSTRING(``,1,1) FROM ``;
SELECT ``, SUBSTRING(``,1,2) FROM ``;
SELECT ``, SUBSTRING(``,1,3) FROM ``;
SELECT ``, SUBSTRING(``,1,4) FROM ``;
SELECT ``, SUBSTRING(``,1,5) FROM ``;
SELECT ``, SUBSTRING(``,1,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 6) FROM ``;
SELECT ``, SUBSTRING(``,0) FROM ``;
SELECT ``, SUBSTRING(``,1) FROM ``;
SELECT ``, SUBSTRING(``,2) FROM ``;
SELECT ``, SUBSTRING(``,3) FROM ``;
SELECT ``, SUBSTRING(``,4) FROM ``;
SELECT ``, SUBSTRING(``,5) FROM ``;
SELECT ``, SUBSTRING(``,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 6) FROM ``;
SELECT ``, SUBSTRING(``,1,0) FROM ``;
SELECT ``, SUBSTRING(``,1,1) FROM ``;
SELECT ``, SUBSTRING(``,1,2) FROM ``;
SELECT ``, SUBSTRING(``,1,3) FROM ``;
SELECT ``, SUBSTRING(``,1,4) FROM ``;
SELECT ``, SUBSTRING(``,1,5) FROM ``;
SELECT ``, SUBSTRING(``,1,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 6) FROM ``;
SELECT ``, SUBSTRING(``,0) FROM ``;
SELECT ``, SUBSTRING(``,1) FROM ``;
SELECT ``, SUBSTRING(``,2) FROM ``;
SELECT ``, SUBSTRING(``,3) FROM ``;
SELECT ``, SUBSTRING(``,4) FROM ``;
SELECT ``, SUBSTRING(``,5) FROM ``;
SELECT ``, SUBSTRING(``,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 6) FROM ``;
SELECT ``, SUBSTRING(``,1,0) FROM ``;
SELECT ``, SUBSTRING(``,1,1) FROM ``;
SELECT ``, SUBSTRING(``,1,2) FROM ``;
SELECT ``, SUBSTRING(``,1,3) FROM ``;
SELECT ``, SUBSTRING(``,1,4) FROM ``;
SELECT ``, SUBSTRING(``,1,5) FROM ``;
SELECT ``, SUBSTRING(``,1,6) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 0) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 1) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 2) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 3) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 4) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 5) FROM ``;
SELECT ``, SUBSTRING(`` FROM 1 FOR 6) FROM ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;
DROP TABLE ``;