Anforderungen.test Begriffe der KonzeptbildungSQL {SQL[203] Lisp[71] Masm[71]}Entwicklung
--source include/have_sjis.inc
--source include/have_innodb.inc
--character_set sjis
--disable_warnings
drop table if exists `sP`;
drop table if exists `sQ`;
drop table if exists `sR`;
drop table if exists `sS`;
drop table if exists `sT`;
drop table if exists `sU`;
drop table if exists `sV`;
drop table if exists `sW`;
drop table if exists `sX`;
--enable_warnings
#
# Test LENGTH() function with Japanese character in sjis encoding
#
SET NAMES sjis;
SET character_set_database = sjis;
CREATE TABLE `sP` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `sQ` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `sR` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = innodb;
CREATE TABLE `sS` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `sT` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `sU` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = myisam;
CREATE TABLE `sV` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `sW` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = MEMORY;
CREATE TABLE `sX` (`bP` char(5), INDEX(`bP`)) DEFAULT CHARSET = sjis engine = MEMORY;
INSERT INTO `sP` VALUES ('±²³´µ'),('±²³´'),('±²³'),('±²'),('±'),('');
INSERT INTO `sQ` VALUES (' ¢¤¦¨'),(' ¢¤¦'),(' ¢¤'),(' ¢'),(' '),('');
INSERT INTO `sR` VALUES ('\\\\\'),('\\\\'),('\\\'),('\\'),('\'),('');
INSERT INTO `sS` VALUES ('±²³´µ'),('±²³´'),('±²³'),('±²'),('±'),('');
INSERT INTO `sT` VALUES (' ¢¤¦¨'),(' ¢¤¦'),(' ¢¤'),(' ¢'),(' '),('');
INSERT INTO `sU` VALUES ('\\\\\'),('\\\\'),('\\\'),('\\'),('\'),('');
INSERT INTO `sV` VALUES ('±²³´µ'),('±²³´'),('±²³'),('±²'),('±'),('');
INSERT INTO `sW` VALUES (' ¢¤¦¨'),(' ¢¤¦'),(' ¢¤'),(' ¢'),(' '),('');
INSERT INTO `sX` VALUES ('\\\\\'),('\\\\'),('\\\'),('\\'),('\'),('');
#InnoDB
SELECT `bP`, LENGTH(`bP`) FROM `sP`;
SELECT `bP`, LENGTH(`bP`) FROM `sQ`;
SELECT `bP`, LENGTH(`bP`) FROM `sR`;
#MyISAM
SELECT `bP`, LENGTH(`bP`) FROM `sS`;
SELECT `bP`, LENGTH(`bP`) FROM `sT`;
SELECT `bP`, LENGTH(`bP`) FROM `sU`;
#MEMORY
SELECT `bP`, LENGTH(`bP`) FROM `sV`;
SELECT `bP`, LENGTH(`bP`) FROM `sW`;
SELECT `bP`, LENGTH(`bP`) FROM `sX`;
DROP TABLE `sP`;
DROP TABLE `sQ`;
DROP TABLE `sR`;
DROP TABLE `sS`;
DROP TABLE `sT`;
DROP TABLE `sU`;
DROP TABLE `sV`;
DROP TABLE `sW`;
DROP TABLE `sX`;