diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/regress/expected/euc_cn.out | 55 | ||||
| -rw-r--r-- | src/test/regress/expected/euc_jp.out | 55 | ||||
| -rw-r--r-- | src/test/regress/expected/mule_internal.out | 85 | ||||
| -rw-r--r-- | src/test/regress/sql/euc_cn.sql | 15 | ||||
| -rw-r--r-- | src/test/regress/sql/euc_jp.sql | 15 | ||||
| -rw-r--r-- | src/test/regress/sql/mule_internal.sql | 21 |
6 files changed, 246 insertions, 0 deletions
diff --git a/src/test/regress/expected/euc_cn.out b/src/test/regress/expected/euc_cn.out new file mode 100644 index 0000000000..d927b28d20 --- /dev/null +++ b/src/test/regress/expected/euc_cn.out @@ -0,0 +1,55 @@ +QUERY: drop table 柴麻字宝囂; +ERROR: Relation 柴麻字宝囂 Does Not Exist! +QUERY: create table 柴麻字宝囂(宝囂 text, 蛍窃催 varchar, 姥廣1A char(16)); +QUERY: create index 柴麻字宝囂index1 on 柴麻字宝囂 using btree(宝囂); +QUERY: create index 柴麻字宝囂index2 on 柴麻字宝囂 using btree(蛍窃催); +QUERY: insert into 柴麻字宝囂 values('窮辻�塋焼�','字A01貧'); +QUERY: insert into 柴麻字宝囂 values('窮辻夕侘','蛍B01嶄'); +QUERY: insert into 柴麻字宝囂 values('窮辻殻會埀','繁Z01和'); +QUERY: vacuum 柴麻字宝囂; +QUERY: select * from 柴麻字宝囂; +宝囂 |蛍窃催 |姥廣1a +----------+-------+------ +窮辻�塋焼�|字A01貧| +窮辻夕侘 |蛍B01嶄| +窮辻殻會埀|繁Z01和| +(3 rows) + +QUERY: select * from 柴麻字宝囂 where 蛍窃催 = '繁Z01和'; +宝囂 |蛍窃催 |姥廣1a +----------+-------+------ +窮辻殻會埀|繁Z01和| +(1 row) + +QUERY: select * from 柴麻字宝囂 where 蛍窃催 ~* '繁z01和'; +宝囂 |蛍窃催 |姥廣1a +----------+-------+------ +窮辻殻會埀|繁Z01和| +(1 row) + +QUERY: select * from 柴麻字宝囂 where 蛍窃催 like '_Z01_'; +宝囂 |蛍窃催 |姥廣1a +----------+-------+------ +窮辻殻會埀|繁Z01和| +(1 row) + +QUERY: select * from 柴麻字宝囂 where 蛍窃催 like '_Z%'; +宝囂 |蛍窃催 |姥廣1a +----------+-------+------ +窮辻殻會埀|繁Z01和| +(1 row) + +QUERY: select * from 柴麻字宝囂 where 宝囂 ~ '窮辻[�塒�]'; +宝囂 |蛍窃催 |姥廣1a +----------+-------+------ +窮辻�塋焼�|字A01貧| +窮辻夕侘 |蛍B01嶄| +(2 rows) + +QUERY: select * from 柴麻字宝囂 where 宝囂 ~* '窮辻[�塒�]'; +宝囂 |蛍窃催 |姥廣1a +----------+-------+------ +窮辻�塋焼�|字A01貧| +窮辻夕侘 |蛍B01嶄| +(2 rows) + diff --git a/src/test/regress/expected/euc_jp.out b/src/test/regress/expected/euc_jp.out new file mode 100644 index 0000000000..c710392738 --- /dev/null +++ b/src/test/regress/expected/euc_jp.out @@ -0,0 +1,55 @@ +QUERY: drop table 計算機用語; +ERROR: Relation 計算機用語 Does Not Exist! +QUERY: create table 計算機用語 (用語 text, 分類コード varchar, 備考1Aだよ char(16)); +QUERY: create index 計算機用語index1 on 計算機用語 using btree (用語); +QUERY: create index 計算機用語index2 on 計算機用語 using hash (分類コード); +QUERY: insert into 計算機用語 values('コンピュータディスプレイ','機A01上'); +QUERY: insert into 計算機用語 values('コンピュータグラフィックス','分B10中'); +QUERY: insert into 計算機用語 values('コンピュータプログラマー','人Z01下'); +QUERY: vacuum 計算機用語; +QUERY: select * from 計算機用語; +用語 |分類コード|備考1aだよ +--------------------------+----------+---------- +コンピュータディスプレイ |機A01上 | +コンピュータグラフィックス|分B10中 | +コンピュータプログラマー |人Z01下 | +(3 rows) + +QUERY: select * from 計算機用語 where 分類コード = '人Z01下'; +用語 |分類コード|備考1aだよ +------------------------+----------+---------- +コンピュータプログラマー|人Z01下 | +(1 row) + +QUERY: select * from 計算機用語 where 分類コード ~* '人z01下'; +用語 |分類コード|備考1aだよ +------------------------+----------+---------- +コンピュータプログラマー|人Z01下 | +(1 row) + +QUERY: select * from 計算機用語 where 分類コード like '_Z01_'; +用語 |分類コード|備考1aだよ +------------------------+----------+---------- +コンピュータプログラマー|人Z01下 | +(1 row) + +QUERY: select * from 計算機用語 where 分類コード like '_Z%'; +用語 |分類コード|備考1aだよ +------------------------+----------+---------- +コンピュータプログラマー|人Z01下 | +(1 row) + +QUERY: select * from 計算機用語 where 用語 ~ 'コンピュータ[デグ]'; +用語 |分類コード|備考1aだよ +--------------------------+----------+---------- +コンピュータディスプレイ |機A01上 | +コンピュータグラフィックス|分B10中 | +(2 rows) + +QUERY: select * from 計算機用語 where 用語 ~* 'コンピュータ[デグ]'; +用語 |分類コード|備考1aだよ +--------------------------+----------+---------- +コンピュータディスプレイ |機A01上 | +コンピュータグラフィックス|分B10中 | +(2 rows) + diff --git a/src/test/regress/expected/mule_internal.out b/src/test/regress/expected/mule_internal.out new file mode 100644 index 0000000000..c797072e3d --- /dev/null +++ b/src/test/regress/expected/mule_internal.out @@ -0,0 +1,85 @@ +QUERY: drop table �計�算�機�用�語; +ERROR: Relation �計�算�機�用�語 Does Not Exist! +QUERY: create table �計�算�機�用�語 (�用�語 text, �分�類�コ�ー�ド varchar, �備�考1A�だ�よ char(16)); +QUERY: create index �計�算�機�用�語index1 on �計�算�機�用�語 using btree (�用�語); +QUERY: create index �計�算�機�用�語index2 on �計�算�機�用�語 using hash (�分�類�コ�ー�ド); +QUERY: insert into �計�算�機�用�語 values('�コ�ン�ピ�ュ�ー�タ�デ�ィ�ス�プ�レ�イ','�機A01�上'); +QUERY: insert into �計�算�機�用�語 values('�コ�ン�ピ�ュ�ー�タ�グ�ラ�フ�ィ�ッ�ク�ス','�分B10�中'); +QUERY: insert into �計�算�機�用�語 values('�コ�ン�ピ�ュ�ー�タ�プ�ロ�グ�ラ�マ�ー','�人Z01�下'); +QUERY: insert into �計�算�機�用�語 values('�窮�辻����幣�徳','�字A01�貧'); +QUERY: insert into �計�算�機�用�語 values('�窮�辻�夕�侘','�蛍B01�嶄'); +QUERY: insert into �計�算�機�用�語 values('�窮�辻�殻�會�埀','�繁Z01�和'); +QUERY: vacuum �計�算�機�用�語; +QUERY: select * from �計�算�機�用�語; +�用�語 |�分�類�コ�ー�ド|�備�考1a�だ�よ +---------------------------------------+---------------+-------------- +�コ�ン�ピ�ュ�ー�タ�デ�ィ�ス�プ�レ�イ |�機A01�上 | +�コ�ン�ピ�ュ�ー�タ�グ�ラ�フ�ィ�ッ�ク�ス|�分B10�中 | +�コ�ン�ピ�ュ�ー�タ�プ�ロ�グ�ラ�マ�ー |�人Z01�下 | +�窮�辻����幣�徳 |�字A01�貧 | +�窮�辻�夕�侘 |�蛍B01�嶄 | +�窮�辻�殻�會�埀 |�繁Z01�和 | +(6 rows) + +QUERY: select * from �計�算�機�用�語 where �分�類�コ�ー�ド = '�人Z01�下'; +�用�語 |�分�類�コ�ー�ド|�備�考1a�だ�よ +------------------------------------+---------------+-------------- +�コ�ン�ピ�ュ�ー�タ�プ�ロ�グ�ラ�マ�ー|�人Z01�下 | +(1 row) + +QUERY: select * from �計�算�機�用�語 where �分�類�コ�ー�ド ~ 'Z01'; +�用�語 |�分�類�コ�ー�ド|�備�考1a�だ�よ +------------------------------------+---------------+-------------- +�コ�ン�ピ�ュ�ー�タ�プ�ロ�グ�ラ�マ�ー|�人Z01�下 | +�窮�辻�殻�會�埀 |�繁Z01�和 | +(2 rows) + +QUERY: select * from �計�算�機�用�語 where �分�類�コ�ー�ド ~* 'z01'; +�用�語 |�分�類�コ�ー�ド|�備�考1a�だ�よ +------------------------------------+---------------+-------------- +�コ�ン�ピ�ュ�ー�タ�プ�ロ�グ�ラ�マ�ー|�人Z01�下 | +�窮�辻�殻�會�埀 |�繁Z01�和 | +(2 rows) + +QUERY: select * from �計�算�機�用�語 where �分�類�コ�ー�ド like '_Z01_'; +�用�語 |�分�類�コ�ー�ド|�備�考1a�だ�よ +------------------------------------+---------------+-------------- +�コ�ン�ピ�ュ�ー�タ�プ�ロ�グ�ラ�マ�ー|�人Z01�下 | +�窮�辻�殻�會�埀 |�繁Z01�和 | +(2 rows) + +QUERY: select * from �計�算�機�用�語 where �分�類�コ�ー�ド like '_Z%'; +�用�語 |�分�類�コ�ー�ド|�備�考1a�だ�よ +------------------------------------+---------------+-------------- +�コ�ン�ピ�ュ�ー�タ�プ�ロ�グ�ラ�マ�ー|�人Z01�下 | +�窮�辻�殻�會�埀 |�繁Z01�和 | +(2 rows) + +QUERY: select * from �計�算�機�用�語 where �用�語 ~ '�コ�ン�ピ�ュ�ー�タ[�デ�グ]'; +�用�語 |�分�類�コ�ー�ド|�備�考1a�だ�よ +---------------------------------------+---------------+-------------- +�コ�ン�ピ�ュ�ー�タ�デ�ィ�ス�プ�レ�イ |�機A01�上 | +�コ�ン�ピ�ュ�ー�タ�グ�ラ�フ�ィ�ッ�ク�ス|�分B10�中 | +(2 rows) + +QUERY: select * from �計�算�機�用�語 where �用�語 ~* '�コ�ン�ピ�ュ�ー�タ[�デ�グ]'; +�用�語 |�分�類�コ�ー�ド|�備�考1a�だ�よ +---------------------------------------+---------------+-------------- +�コ�ン�ピ�ュ�ー�タ�デ�ィ�ス�プ�レ�イ |�機A01�上 | +�コ�ン�ピ�ュ�ー�タ�グ�ラ�フ�ィ�ッ�ク�ス|�分B10�中 | +(2 rows) + +QUERY: select * from �計�算�機�用�語 where �用�語 ~ '�窮�辻[����夕]'; +�用�語 |�分�類�コ�ー�ド|�備�考1a�だ�よ +---------------+---------------+-------------- +�窮�辻����幣�徳|�字A01�貧 | +�窮�辻�夕�侘 |�蛍B01�嶄 | +(2 rows) + +QUERY: select * from �計�算�機�用�語 where �用�語 ~* '�窮�辻[����夕]'; +�用�語 |�分�類�コ�ー�ド|�備�考1a�だ�よ +---------------+---------------+-------------- +�窮�辻����幣�徳|�字A01�貧 | +�窮�辻�夕�侘 |�蛍B01�嶄 | +(2 rows) + diff --git a/src/test/regress/sql/euc_cn.sql b/src/test/regress/sql/euc_cn.sql new file mode 100644 index 0000000000..461c0c864f --- /dev/null +++ b/src/test/regress/sql/euc_cn.sql @@ -0,0 +1,15 @@ +drop table 柴麻字宝囂; +create table 柴麻字宝囂(宝囂 text, 蛍窃催 varchar, 姥廣1A char(16)); +create index 柴麻字宝囂index1 on 柴麻字宝囂 using btree(宝囂); +create index 柴麻字宝囂index2 on 柴麻字宝囂 using btree(蛍窃催); +insert into 柴麻字宝囂 values('窮辻�塋焼�','字A01貧'); +insert into 柴麻字宝囂 values('窮辻夕侘','蛍B01嶄'); +insert into 柴麻字宝囂 values('窮辻殻會埀','繁Z01和'); +vacuum 柴麻字宝囂; +select * from 柴麻字宝囂; +select * from 柴麻字宝囂 where 蛍窃催 = '繁Z01和'; +select * from 柴麻字宝囂 where 蛍窃催 ~* '繁z01和'; +select * from 柴麻字宝囂 where 蛍窃催 like '_Z01_'; +select * from 柴麻字宝囂 where 蛍窃催 like '_Z%'; +select * from 柴麻字宝囂 where 宝囂 ~ '窮辻[�塒�]'; +select * from 柴麻字宝囂 where 宝囂 ~* '窮辻[�塒�]'; diff --git a/src/test/regress/sql/euc_jp.sql b/src/test/regress/sql/euc_jp.sql new file mode 100644 index 0000000000..8cba58055d --- /dev/null +++ b/src/test/regress/sql/euc_jp.sql @@ -0,0 +1,15 @@ +drop table 計算機用語; +create table 計算機用語 (用語 text, 分類コード varchar, 備考1Aだよ char(16)); +create index 計算機用語index1 on 計算機用語 using btree (用語); +create index 計算機用語index2 on 計算機用語 using hash (分類コード); +insert into 計算機用語 values('コンピュータディスプレイ','機A01上'); +insert into 計算機用語 values('コンピュータグラフィックス','分B10中'); +insert into 計算機用語 values('コンピュータプログラマー','人Z01下'); +vacuum 計算機用語; +select * from 計算機用語; +select * from 計算機用語 where 分類コード = '人Z01下'; +select * from 計算機用語 where 分類コード ~* '人z01下'; +select * from 計算機用語 where 分類コード like '_Z01_'; +select * from 計算機用語 where 分類コード like '_Z%'; +select * from 計算機用語 where 用語 ~ 'コンピュータ[デグ]'; +select * from 計算機用語 where 用語 ~* 'コンピュータ[デグ]'; diff --git a/src/test/regress/sql/mule_internal.sql b/src/test/regress/sql/mule_internal.sql new file mode 100644 index 0000000000..6d07906ff7 --- /dev/null +++ b/src/test/regress/sql/mule_internal.sql @@ -0,0 +1,21 @@ +drop table �計�算�機�用�語; +create table �計�算�機�用�語 (�用�語 text, �分�類�コ�ー�ド varchar, �備�考1A�だ�よ char(16)); +create index �計�算�機�用�語index1 on �計�算�機�用�語 using btree (�用�語); +create index �計�算�機�用�語index2 on �計�算�機�用�語 using hash (�分�類�コ�ー�ド); +insert into �計�算�機�用�語 values('�コ�ン�ピ�ュ�ー�タ�デ�ィ�ス�プ�レ�イ','�機A01�上'); +insert into �計�算�機�用�語 values('�コ�ン�ピ�ュ�ー�タ�グ�ラ�フ�ィ�ッ�ク�ス','�分B10�中'); +insert into �計�算�機�用�語 values('�コ�ン�ピ�ュ�ー�タ�プ�ロ�グ�ラ�マ�ー','�人Z01�下'); +insert into �計�算�機�用�語 values('�窮�辻����幣�徳','�字A01�貧'); +insert into �計�算�機�用�語 values('�窮�辻�夕�侘','�蛍B01�嶄'); +insert into �計�算�機�用�語 values('�窮�辻�殻�會�埀','�繁Z01�和'); +vacuum �計�算�機�用�語; +select * from �計�算�機�用�語; +select * from �計�算�機�用�語 where �分�類�コ�ー�ド = '�人Z01�下'; +select * from �計�算�機�用�語 where �分�類�コ�ー�ド ~ 'Z01'; +select * from �計�算�機�用�語 where �分�類�コ�ー�ド ~* 'z01'; +select * from �計�算�機�用�語 where �分�類�コ�ー�ド like '_Z01_'; +select * from �計�算�機�用�語 where �分�類�コ�ー�ド like '_Z%'; +select * from �計�算�機�用�語 where �用�語 ~ '�コ�ン�ピ�ュ�ー�タ[�デ�グ]'; +select * from �計�算�機�用�語 where �用�語 ~* '�コ�ン�ピ�ュ�ー�タ[�デ�グ]'; +select * from �計�算�機�用�語 where �用�語 ~ '�窮�辻[����夕]'; +select * from �計�算�機�用�語 where �用�語 ~* '�窮�辻[����夕]'; |
