diff options
author | Bruce Momjian | 1999-02-02 19:04:43 +0000 |
---|---|---|
committer | Bruce Momjian | 1999-02-02 19:04:43 +0000 |
commit | 2163d9e33eaa66f493f93b2aa291c20675aa1e2d (patch) | |
tree | 678ec22ad438a38498392e62bdcd6bbb90e7a454 | |
parent | a7ad43cd18ebadf8c3d9cb117ff82ff4077a2986 (diff) |
Add missing mb files.
-rw-r--r-- | src/test/mb/expected/euc_tw.out | 85 | ||||
-rw-r--r-- | src/test/mb/sql/euc_tw.sql | 20 | ||||
-rw-r--r-- | src/test/regress/expected/euc_tw.out | 85 | ||||
-rw-r--r-- | src/test/regress/sql/euc_tw.sql | 20 |
4 files changed, 210 insertions, 0 deletions
diff --git a/src/test/mb/expected/euc_tw.out b/src/test/mb/expected/euc_tw.out new file mode 100644 index 00000000000..c0aff468d0f --- /dev/null +++ b/src/test/mb/expected/euc_tw.out @@ -0,0 +1,85 @@ +QUERY: drop table ��ٸ����; +ERROR: Relation ��ٸ���� Does Not Exist! +QUERY: create table ��ٸ���� (����ɱ text, ��Ƴ��� varchar, ���� varchar(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 ��ٸ����; +����ɱ|��Ƴ��� |���� +------+----------------+------- +�����|������ |ơA01�� +������|����ȴ����Ƴ |��B10�� +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ +(3 rows) + +QUERY: select * from ��ٸ���� where ���� = '��Z01Ħ'; +����ɱ|��Ƴ��� |���� +------+----------------+------- +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ +(1 row) + +QUERY: select * from ��ٸ���� where ���� ~* '��z01Ħ'; +����ɱ|��Ƴ��� |���� +------+----------------+------- +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ +(1 row) + +QUERY: select * from ��ٸ���� where ���� like '_Z01_'; +����ɱ|��Ƴ��� |���� +------+----------------+------- +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ +(1 row) + +QUERY: select * from ��ٸ���� where ���� like '_Z%'; +����ɱ|��Ƴ��� |���� +------+----------------+------- +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ +(1 row) + +QUERY: select * from ��ٸ���� where ��Ƴ��� ~ '����[��ش��]'; +����ɱ|��Ƴ���|���� +------+--------+------- +�����|������|ơA01�� +(1 row) + +QUERY: select * from ��ٸ���� where ��Ƴ��� ~* '����[��ش��]'; +����ɱ|��Ƴ���|���� +------+--------+------- +�����|������|ơA01�� +(1 row) + +QUERY: select *, character_length(����ɱ) from ��ٸ����; +����ɱ|��Ƴ��� |���� |length +------+----------------+-------+------ +�����|������ |ơA01��| 3 +������|����ȴ����Ƴ |��B10��| 3 +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ| 3 +(3 rows) + +QUERY: select *, octet_length(����ɱ) from ��ٸ����; +����ɱ|��Ƴ��� |���� |octet_length +------+----------------+-------+------------ +�����|������ |ơA01��| 6 +������|����ȴ����Ƴ |��B10��| 6 +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ| 6 +(3 rows) + +QUERY: select *, position('ȴ��' in ��Ƴ���) from ��ٸ����; +����ɱ|��Ƴ��� |���� |strpos +------+----------------+-------+------ +�����|������ |ơA01��| 0 +������|����ȴ����Ƴ |��B10��| 3 +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ| 5 +(3 rows) + +QUERY: select *, substring(��Ƴ��� from 3 for 6 ) from ��ٸ����; +����ɱ|��Ƴ��� |���� |substr +------+----------------+-------+------------ +�����|������ |ơA01��|���� +������|����ȴ����Ƴ |��B10��|ȴ����Ƴ +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ|ϴǹȴ����Ƴ +(3 rows) + diff --git a/src/test/mb/sql/euc_tw.sql b/src/test/mb/sql/euc_tw.sql new file mode 100644 index 00000000000..79f3def432d --- /dev/null +++ b/src/test/mb/sql/euc_tw.sql @@ -0,0 +1,20 @@ +drop table ��ٸ����; +create table ��ٸ���� (����ɱ text, ��Ƴ��� varchar, ���� varchar(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 ��Ƴ��� ~* '����[��ش��]'; + +select *, character_length(����ɱ) from ��ٸ����; +select *, octet_length(����ɱ) from ��ٸ����; +select *, position('ȴ��' in ��Ƴ���) from ��ٸ����; +select *, substring(��Ƴ��� from 3 for 6 ) from ��ٸ����; diff --git a/src/test/regress/expected/euc_tw.out b/src/test/regress/expected/euc_tw.out new file mode 100644 index 00000000000..c0aff468d0f --- /dev/null +++ b/src/test/regress/expected/euc_tw.out @@ -0,0 +1,85 @@ +QUERY: drop table ��ٸ����; +ERROR: Relation ��ٸ���� Does Not Exist! +QUERY: create table ��ٸ���� (����ɱ text, ��Ƴ��� varchar, ���� varchar(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 ��ٸ����; +����ɱ|��Ƴ��� |���� +------+----------------+------- +�����|������ |ơA01�� +������|����ȴ����Ƴ |��B10�� +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ +(3 rows) + +QUERY: select * from ��ٸ���� where ���� = '��Z01Ħ'; +����ɱ|��Ƴ��� |���� +------+----------------+------- +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ +(1 row) + +QUERY: select * from ��ٸ���� where ���� ~* '��z01Ħ'; +����ɱ|��Ƴ��� |���� +------+----------------+------- +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ +(1 row) + +QUERY: select * from ��ٸ���� where ���� like '_Z01_'; +����ɱ|��Ƴ��� |���� +------+----------------+------- +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ +(1 row) + +QUERY: select * from ��ٸ���� where ���� like '_Z%'; +����ɱ|��Ƴ��� |���� +------+----------------+------- +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ +(1 row) + +QUERY: select * from ��ٸ���� where ��Ƴ��� ~ '����[��ش��]'; +����ɱ|��Ƴ���|���� +------+--------+------- +�����|������|ơA01�� +(1 row) + +QUERY: select * from ��ٸ���� where ��Ƴ��� ~* '����[��ش��]'; +����ɱ|��Ƴ���|���� +------+--------+------- +�����|������|ơA01�� +(1 row) + +QUERY: select *, character_length(����ɱ) from ��ٸ����; +����ɱ|��Ƴ��� |���� |length +------+----------------+-------+------ +�����|������ |ơA01��| 3 +������|����ȴ����Ƴ |��B10��| 3 +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ| 3 +(3 rows) + +QUERY: select *, octet_length(����ɱ) from ��ٸ����; +����ɱ|��Ƴ��� |���� |octet_length +------+----------------+-------+------------ +�����|������ |ơA01��| 6 +������|����ȴ����Ƴ |��B10��| 6 +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ| 6 +(3 rows) + +QUERY: select *, position('ȴ��' in ��Ƴ���) from ��ٸ����; +����ɱ|��Ƴ��� |���� |strpos +------+----------------+-------+------ +�����|������ |ơA01��| 0 +������|����ȴ����Ƴ |��B10��| 3 +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ| 5 +(3 rows) + +QUERY: select *, substring(��Ƴ��� from 3 for 6 ) from ��ٸ����; +����ɱ|��Ƴ��� |���� |substr +------+----------------+-------+------------ +�����|������ |ơA01��|���� +������|����ȴ����Ƴ |��B10��|ȴ����Ƴ +����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ|ϴǹȴ����Ƴ +(3 rows) + diff --git a/src/test/regress/sql/euc_tw.sql b/src/test/regress/sql/euc_tw.sql new file mode 100644 index 00000000000..79f3def432d --- /dev/null +++ b/src/test/regress/sql/euc_tw.sql @@ -0,0 +1,20 @@ +drop table ��ٸ����; +create table ��ٸ���� (����ɱ text, ��Ƴ��� varchar, ���� varchar(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 ��Ƴ��� ~* '����[��ش��]'; + +select *, character_length(����ɱ) from ��ٸ����; +select *, octet_length(����ɱ) from ��ٸ����; +select *, position('ȴ��' in ��Ƴ���) from ��ٸ����; +select *, substring(��Ƴ��� from 3 for 6 ) from ��ٸ����; |