~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/jp/t/jp_select_sjis.test

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
Import upstream version 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--source include/have_sjis.inc
 
2
--source include/have_innodb.inc
 
3
--character_set sjis
 
4
--disable_warnings
 
5
drop table if exists `�s�P`;
 
6
drop table if exists `�s�Q`;
 
7
drop table if exists `�s�R`;
 
8
drop table if exists `�s�S`;
 
9
drop table if exists `�s�T`;
 
10
drop table if exists `�s�U`;
 
11
drop table if exists `�s�V`;
 
12
drop table if exists `�s�W`;
 
13
drop table if exists `�s�X`;
 
14
--enable_warnings
 
15
 
 
16
#
 
17
# Test Displaying Japanese charact in sjis encoding
 
18
#
 
19
 
 
20
SET NAMES sjis;
 
21
SET character_set_database = sjis;
 
22
 
 
23
CREATE TABLE `�s�P` (`�b�P` char(20), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = innodb;
 
24
CREATE TABLE `�s�Q` (`�b�P` char(20), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = innodb;
 
25
CREATE TABLE `�s�R` (`�b�P` char(20), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = innodb;
 
26
CREATE TABLE `�s�S` (`�b�P` char(20), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = myisam;
 
27
CREATE TABLE `�s�T` (`�b�P` char(20), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = myisam;
 
28
CREATE TABLE `�s�U` (`�b�P` char(20), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = myisam;
 
29
CREATE TABLE `�s�V` (`�b�P` char(20), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = MEMORY;
 
30
CREATE TABLE `�s�W` (`�b�P` char(20), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = MEMORY;
 
31
CREATE TABLE `�s�X` (`�b�P` char(20), INDEX(`�b�P`)) DEFAULT CHARSET = sjis engine = MEMORY;
 
32
 
 
33
#Load the following data in each table
 
34
# jisx0201 hankaku-katakana data
 
35
# jisx0208 data
 
36
# jisx0212 supplemental character data
 
37
 
 
38
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `�s�P`;
 
39
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `�s�Q`;
 
40
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `�s�R`;
 
41
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `�s�S`;
 
42
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `�s�T`;
 
43
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `�s�U`;
 
44
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0201_sjis.dat' INTO TABLE `�s�V`;
 
45
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis.dat' INTO TABLE `�s�W`;
 
46
LOAD DATA LOCAL INFILE 'suite/jp/std_data/jisx0208_sjis2.dat' INTO TABLE `�s�X`;
 
47
 
 
48
#InnoDB
 
49
SELECT * FROM `�s�P`;
 
50
SELECT * FROM `�s�Q`;
 
51
SELECT * FROM `�s�R`;
 
52
#MyISAM
 
53
SELECT * FROM `�s�S`;
 
54
SELECT * FROM `�s�T`;
 
55
SELECT * FROM `�s�U`;
 
56
#MEMORY
 
57
SELECT * FROM `�s�V`;
 
58
SELECT * FROM `�s�W`;
 
59
SELECT * FROM `�s�X`;
 
60
 
 
61
drop table `�s�P`;
 
62
drop table `�s�Q`;
 
63
drop table `�s�R`;
 
64
drop table `�s�S`;
 
65
drop table `�s�T`;
 
66
drop table `�s�U`;
 
67
drop table `�s�V`;
 
68
drop table `�s�W`;
 
69
drop table `�s�X`;