mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
142 lines
5.9 KiB
Text
142 lines
5.9 KiB
Text
|
--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`;
|
|||
|
drop table if exists `<60>s<EFBFBD>P<EFBFBD>O`;
|
|||
|
drop table if exists `<60>s<EFBFBD>P<EFBFBD>P`;
|
|||
|
drop table if exists `<60>s<EFBFBD>P<EFBFBD>Q`;
|
|||
|
--enable_warnings
|
|||
|
|
|||
|
#
|
|||
|
# Test LEFT() function with Japanese character in sjis encoding
|
|||
|
#
|
|||
|
|
|||
|
SET NAMES sjis;
|
|||
|
SET character_set_database = sjis;
|
|||
|
|
|||
|
CREATE TABLE `<60>s<EFBFBD>P` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = innodb;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>Q` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = innodb;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>R` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = innodb;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>S` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = myisam;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>T` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = myisam;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>U` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = myisam;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>V` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>W` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>X` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = heap;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>P<EFBFBD>O` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = bdb;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>P<EFBFBD>P` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = bdb;
|
|||
|
CREATE TABLE `<60>s<EFBFBD>P<EFBFBD>Q` (`<60>b<EFBFBD>P` char(5), INDEX(`<60>b<EFBFBD>P`)) DEFAULT CHARSET = sjis engine = bdb;
|
|||
|
|
|||
|
INSERT INTO `<60>s<EFBFBD>P` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD>'),('<27><><EFBFBD>'),('<27><>'),('<27>'),('');
|
|||
|
INSERT INTO `<60>s<EFBFBD>Q` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD>'),('<27><>'),('');
|
|||
|
INSERT INTO `<60>s<EFBFBD>R` VALUES ('<27>\<5C>\<5C>\<5C>\<5C>\'),('<27>\<5C>\<5C>\<5C>\'),('<27>\<5C>\<5C>\'),('<27>\<5C>\'),('<27>\'),('');
|
|||
|
INSERT INTO `<60>s<EFBFBD>S` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD>'),('<27><><EFBFBD>'),('<27><>'),('<27>'),('');
|
|||
|
INSERT INTO `<60>s<EFBFBD>T` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD>'),('<27><>'),('');
|
|||
|
INSERT INTO `<60>s<EFBFBD>U` VALUES ('<27>\<5C>\<5C>\<5C>\<5C>\'),('<27>\<5C>\<5C>\<5C>\'),('<27>\<5C>\<5C>\'),('<27>\<5C>\'),('<27>\'),('');
|
|||
|
INSERT INTO `<60>s<EFBFBD>V` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD>'),('<27><><EFBFBD>'),('<27><>'),('<27>'),('');
|
|||
|
INSERT INTO `<60>s<EFBFBD>W` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD>'),('<27><>'),('');
|
|||
|
INSERT INTO `<60>s<EFBFBD>X` VALUES ('<27>\<5C>\<5C>\<5C>\<5C>\'),('<27>\<5C>\<5C>\<5C>\'),('<27>\<5C>\<5C>\'),('<27>\<5C>\'),('<27>\'),('');
|
|||
|
INSERT INTO `<60>s<EFBFBD>P<EFBFBD>O` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD>'),('<27><><EFBFBD>'),('<27><>'),('<27>'),('');
|
|||
|
INSERT INTO `<60>s<EFBFBD>P<EFBFBD>P` VALUES ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'),('<27><><EFBFBD><EFBFBD>'),('<27><>'),('');
|
|||
|
INSERT INTO `<60>s<EFBFBD>P<EFBFBD>Q` VALUES ('<27>\<5C>\<5C>\<5C>\<5C>\'),('<27>\<5C>\<5C>\<5C>\'),('<27>\<5C>\<5C>\'),('<27>\<5C>\'),('<27>\'),('');
|
|||
|
|
|||
|
#InnoDB
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,0) FROM `<60>s<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,1) FROM `<60>s<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,2) FROM `<60>s<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,3) FROM `<60>s<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,4) FROM `<60>s<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,5) FROM `<60>s<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,0) FROM `<60>s<EFBFBD>Q`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,1) FROM `<60>s<EFBFBD>Q`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,2) FROM `<60>s<EFBFBD>Q`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,3) FROM `<60>s<EFBFBD>Q`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,4) FROM `<60>s<EFBFBD>Q`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,5) FROM `<60>s<EFBFBD>Q`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,0) FROM `<60>s<EFBFBD>R`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,1) FROM `<60>s<EFBFBD>R`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,2) FROM `<60>s<EFBFBD>R`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,3) FROM `<60>s<EFBFBD>R`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,4) FROM `<60>s<EFBFBD>R`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,5) FROM `<60>s<EFBFBD>R`;
|
|||
|
|
|||
|
#MyISAM
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,0) FROM `<60>s<EFBFBD>S`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,1) FROM `<60>s<EFBFBD>S`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,2) FROM `<60>s<EFBFBD>S`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,3) FROM `<60>s<EFBFBD>S`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,4) FROM `<60>s<EFBFBD>S`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,5) FROM `<60>s<EFBFBD>S`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,0) FROM `<60>s<EFBFBD>T`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,1) FROM `<60>s<EFBFBD>T`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,2) FROM `<60>s<EFBFBD>T`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,3) FROM `<60>s<EFBFBD>T`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,4) FROM `<60>s<EFBFBD>T`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,5) FROM `<60>s<EFBFBD>T`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,0) FROM `<60>s<EFBFBD>U`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,1) FROM `<60>s<EFBFBD>U`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,2) FROM `<60>s<EFBFBD>U`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,3) FROM `<60>s<EFBFBD>U`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,4) FROM `<60>s<EFBFBD>U`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,5) FROM `<60>s<EFBFBD>U`;
|
|||
|
|
|||
|
#HEAP
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,0) FROM `<60>s<EFBFBD>V`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,1) FROM `<60>s<EFBFBD>V`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,2) FROM `<60>s<EFBFBD>V`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,3) FROM `<60>s<EFBFBD>V`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,4) FROM `<60>s<EFBFBD>V`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,5) FROM `<60>s<EFBFBD>V`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,0) FROM `<60>s<EFBFBD>W`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,1) FROM `<60>s<EFBFBD>W`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,2) FROM `<60>s<EFBFBD>W`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,3) FROM `<60>s<EFBFBD>W`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,4) FROM `<60>s<EFBFBD>W`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,5) FROM `<60>s<EFBFBD>W`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,0) FROM `<60>s<EFBFBD>X`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,1) FROM `<60>s<EFBFBD>X`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,2) FROM `<60>s<EFBFBD>X`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,3) FROM `<60>s<EFBFBD>X`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,4) FROM `<60>s<EFBFBD>X`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,5) FROM `<60>s<EFBFBD>X`;
|
|||
|
|
|||
|
#BDB
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,0) FROM `<60>s<EFBFBD>P<EFBFBD>O`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,1) FROM `<60>s<EFBFBD>P<EFBFBD>O`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,2) FROM `<60>s<EFBFBD>P<EFBFBD>O`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,3) FROM `<60>s<EFBFBD>P<EFBFBD>O`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,4) FROM `<60>s<EFBFBD>P<EFBFBD>O`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,5) FROM `<60>s<EFBFBD>P<EFBFBD>O`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,0) FROM `<60>s<EFBFBD>P<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,1) FROM `<60>s<EFBFBD>P<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,2) FROM `<60>s<EFBFBD>P<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,3) FROM `<60>s<EFBFBD>P<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,4) FROM `<60>s<EFBFBD>P<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,5) FROM `<60>s<EFBFBD>P<EFBFBD>P`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,0) FROM `<60>s<EFBFBD>P<EFBFBD>Q`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,1) FROM `<60>s<EFBFBD>P<EFBFBD>Q`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,2) FROM `<60>s<EFBFBD>P<EFBFBD>Q`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,3) FROM `<60>s<EFBFBD>P<EFBFBD>Q`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,4) FROM `<60>s<EFBFBD>P<EFBFBD>Q`;
|
|||
|
SELECT `<60>b<EFBFBD>P`, LEFT(`<60>b<EFBFBD>P`,5) FROM `<60>s<EFBFBD>P<EFBFBD>Q`;
|
|||
|
|
|||
|
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`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>P<EFBFBD>O`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>P<EFBFBD>P`;
|
|||
|
DROP TABLE `<60>s<EFBFBD>P<EFBFBD>Q`;
|