diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/regress/expected/euc_cn.out | 87 | ||||
| -rw-r--r-- | src/test/regress/expected/euc_jp.out | 87 | ||||
| -rw-r--r-- | src/test/regress/expected/euc_kr.out | 87 | ||||
| -rw-r--r-- | src/test/regress/expected/euc_tw.out | 85 | ||||
| -rw-r--r-- | src/test/regress/expected/mule_internal.out | 333 | ||||
| -rw-r--r-- | src/test/regress/expected/sql_ascii.out | 87 | ||||
| -rw-r--r-- | src/test/regress/sql/drop.sql | 246 | ||||
| -rw-r--r-- | src/test/regress/sql/euc_cn.sql | 19 | ||||
| -rw-r--r-- | src/test/regress/sql/euc_jp.sql | 19 | ||||
| -rw-r--r-- | src/test/regress/sql/euc_kr.sql | 19 | ||||
| -rw-r--r-- | src/test/regress/sql/euc_tw.sql | 20 | ||||
| -rw-r--r-- | src/test/regress/sql/mule_internal.sql | 72 | ||||
| -rw-r--r-- | src/test/regress/sql/sql_ascii.sql | 19 |
13 files changed, 0 insertions, 1180 deletions
diff --git a/src/test/regress/expected/euc_cn.out b/src/test/regress/expected/euc_cn.out deleted file mode 100644 index 7fdb13cfe5d..00000000000 --- a/src/test/regress/expected/euc_cn.out +++ /dev/null @@ -1,87 +0,0 @@ -drop table ���������; -ERROR: Relation '���������' does not exist -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 ���������; - ���� | ����� | ��ע1a -------------+---------+-------- - ������ʾ�� | ��A01�� | - ����ͼ�� | ��B01�� | - ���Գ���Ա | ��Z01�� | -(3 rows) - -select * from ��������� where ����� = '��Z01��'; - ���� | ����� | ��ע1a -------------+---------+-------- - ���Գ���Ա | ��Z01�� | -(1 row) - -select * from ��������� where ����� ~* '��z01��'; - ���� | ����� | ��ע1a -------------+---------+-------- - ���Գ���Ա | ��Z01�� | -(1 row) - -select * from ��������� where ����� like '_Z01_'; - ���� | ����� | ��ע1a -------------+---------+-------- - ���Գ���Ա | ��Z01�� | -(1 row) - -select * from ��������� where ����� like '_Z%'; - ���� | ����� | ��ע1a -------------+---------+-------- - ���Գ���Ա | ��Z01�� | -(1 row) - -select * from ��������� where ���� ~ '����[��ͼ]'; - ���� | ����� | ��ע1a -------------+---------+-------- - ������ʾ�� | ��A01�� | - ����ͼ�� | ��B01�� | -(2 rows) - -select * from ��������� where ���� ~* '����[��ͼ]'; - ���� | ����� | ��ע1a -------------+---------+-------- - ������ʾ�� | ��A01�� | - ����ͼ�� | ��B01�� | -(2 rows) - -select *,character_length(����) from ���������; - ���� | ����� | ��ע1a | char_length -------------+---------+--------+------------- - ������ʾ�� | ��A01�� | | 5 - ����ͼ�� | ��B01�� | | 4 - ���Գ���Ա | ��Z01�� | | 5 -(3 rows) - -select *,octet_length(����) from ���������; - ���� | ����� | ��ע1a | octet_length -------------+---------+--------+-------------- - ������ʾ�� | ��A01�� | | 10 - ����ͼ�� | ��B01�� | | 8 - ���Գ���Ա | ��Z01�� | | 10 -(3 rows) - -select *,position('��' in ����) from ���������; - ���� | ����� | ��ע1a | strpos -------------+---------+--------+-------- - ������ʾ�� | ��A01�� | | 3 - ����ͼ�� | ��B01�� | | 0 - ���Գ���Ա | ��Z01�� | | 0 -(3 rows) - -select *,substring(���� from 3 for 4) from ���������; - ���� | ����� | ��ע1a | substr -------------+---------+--------+-------- - ������ʾ�� | ��A01�� | | ��ʾ�� - ����ͼ�� | ��B01�� | | ͼ�� - ���Գ���Ա | ��Z01�� | | ����Ա -(3 rows) - diff --git a/src/test/regress/expected/euc_jp.out b/src/test/regress/expected/euc_jp.out deleted file mode 100644 index f95d283501b..00000000000 --- a/src/test/regress/expected/euc_jp.out +++ /dev/null @@ -1,87 +0,0 @@ -drop table �����Ѹ�; -ERROR: table "�����Ѹ�" is nonexistent -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 �����Ѹ�; - �Ѹ� | ʬ�ॳ���� | ����1a���� -----------------------------+------------+------------ - ����ԥ塼���ǥ����ץ쥤 | ��A01�� | - ����ԥ塼������ե��å��� | ʬB10�� | - ����ԥ塼���ץ�����ޡ� | ��Z01�� | -(3 rows) - -select * from �����Ѹ� where ʬ�ॳ���� = '��Z01��'; - �Ѹ� | ʬ�ॳ���� | ����1a���� ---------------------------+------------+------------ - ����ԥ塼���ץ�����ޡ� | ��Z01�� | -(1 row) - -select * from �����Ѹ� where ʬ�ॳ���� ~* '��z01��'; - �Ѹ� | ʬ�ॳ���� | ����1a���� ---------------------------+------------+------------ - ����ԥ塼���ץ�����ޡ� | ��Z01�� | -(1 row) - -select * from �����Ѹ� where ʬ�ॳ���� like '_Z01_'; - �Ѹ� | ʬ�ॳ���� | ����1a���� ---------------------------+------------+------------ - ����ԥ塼���ץ�����ޡ� | ��Z01�� | -(1 row) - -select * from �����Ѹ� where ʬ�ॳ���� like '_Z%'; - �Ѹ� | ʬ�ॳ���� | ����1a���� ---------------------------+------------+------------ - ����ԥ塼���ץ�����ޡ� | ��Z01�� | -(1 row) - -select * from �����Ѹ� where �Ѹ� ~ '����ԥ塼��[�ǥ�]'; - �Ѹ� | ʬ�ॳ���� | ����1a���� -----------------------------+------------+------------ - ����ԥ塼���ǥ����ץ쥤 | ��A01�� | - ����ԥ塼������ե��å��� | ʬB10�� | -(2 rows) - -select * from �����Ѹ� where �Ѹ� ~* '����ԥ塼��[�ǥ�]'; - �Ѹ� | ʬ�ॳ���� | ����1a���� -----------------------------+------------+------------ - ����ԥ塼���ǥ����ץ쥤 | ��A01�� | - ����ԥ塼������ե��å��� | ʬB10�� | -(2 rows) - -select *,character_length(�Ѹ�) from �����Ѹ�; - �Ѹ� | ʬ�ॳ���� | ����1a���� | char_length -----------------------------+------------+------------+------------- - ����ԥ塼���ǥ����ץ쥤 | ��A01�� | | 12 - ����ԥ塼������ե��å��� | ʬB10�� | | 13 - ����ԥ塼���ץ�����ޡ� | ��Z01�� | | 12 -(3 rows) - -select *,octet_length(�Ѹ�) from �����Ѹ�; - �Ѹ� | ʬ�ॳ���� | ����1a���� | octet_length -----------------------------+------------+------------+-------------- - ����ԥ塼���ǥ����ץ쥤 | ��A01�� | | 24 - ����ԥ塼������ե��å��� | ʬB10�� | | 26 - ����ԥ塼���ץ�����ޡ� | ��Z01�� | | 24 -(3 rows) - -select *,position('��' in �Ѹ�) from �����Ѹ�; - �Ѹ� | ʬ�ॳ���� | ����1a���� | strpos -----------------------------+------------+------------+-------- - ����ԥ塼���ǥ����ץ쥤 | ��A01�� | | 7 - ����ԥ塼������ե��å��� | ʬB10�� | | 0 - ����ԥ塼���ץ�����ޡ� | ��Z01�� | | 0 -(3 rows) - -select *,substring(�Ѹ� from 10 for 4) from �����Ѹ�; - �Ѹ� | ʬ�ॳ���� | ����1a���� | substr -----------------------------+------------+------------+---------- - ����ԥ塼���ǥ����ץ쥤 | ��A01�� | | �ץ쥤 - ����ԥ塼������ե��å��� | ʬB10�� | | ���å��� - ����ԥ塼���ץ�����ޡ� | ��Z01�� | | ��ޡ� -(3 rows) - diff --git a/src/test/regress/expected/euc_kr.out b/src/test/regress/expected/euc_kr.out deleted file mode 100644 index 368525b220f..00000000000 --- a/src/test/regress/expected/euc_kr.out +++ /dev/null @@ -1,87 +0,0 @@ -drop table ͪߩѦ���; -ERROR: Relation 'ͪߩѦ���' does not exist -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 ͪߩѦ���; - ��� | ���ڵ� | ���1a�� -------------------+----------+------------ - ��ǻ�͵��÷��� | ѦA01߾ | - ��ǻ�ͱ��Ƚ� | ��B10�� | - ��ǻ�����α��� | ��Z01�� | -(3 rows) - -select * from ͪߩѦ��� where ���ڵ� = '��Z01��'; - ��� | ���ڵ� | ���1a�� -------------------+----------+------------ - ��ǻ�����α��� | ��Z01�� | -(1 row) - -select * from ͪߩѦ��� where ���ڵ� ~* '��z01��'; - ��� | ���ڵ� | ���1a�� -------------------+----------+------------ - ��ǻ�����α��� | ��Z01�� | -(1 row) - -select * from ͪߩѦ��� where ���ڵ� like '_Z01_'; - ��� | ���ڵ� | ���1a�� -------------------+----------+------------ - ��ǻ�����α��� | ��Z01�� | -(1 row) - -select * from ͪߩѦ��� where ���ڵ� like '_Z%'; - ��� | ���ڵ� | ���1a�� -------------------+----------+------------ - ��ǻ�����α��� | ��Z01�� | -(1 row) - -select * from ͪߩѦ��� where ��� ~ '��ǻ��[���]'; - ��� | ���ڵ� | ���1a�� -------------------+----------+------------ - ��ǻ�͵��÷��� | ѦA01߾ | - ��ǻ�ͱ��Ƚ� | ��B10�� | -(2 rows) - -select * from ͪߩѦ��� where ��� ~* '��ǻ��[���]'; - ��� | ���ڵ� | ���1a�� -------------------+----------+------------ - ��ǻ�͵��÷��� | ѦA01߾ | - ��ǻ�ͱ��Ƚ� | ��B10�� | -(2 rows) - -select *,character_length(���) from ͪߩѦ���; - ��� | ���ڵ� | ���1a�� | char_length -------------------+----------+------------+------------- - ��ǻ�͵��÷��� | ѦA01߾ | | 8 - ��ǻ�ͱ��Ƚ� | ��B10�� | | 7 - ��ǻ�����α��� | ��Z01�� | | 8 -(3 rows) - -select *,octet_length(���) from ͪߩѦ���; - ��� | ���ڵ� | ���1a�� | octet_length -------------------+----------+------------+-------------- - ��ǻ�͵��÷��� | ѦA01߾ | | 16 - ��ǻ�ͱ��Ƚ� | ��B10�� | | 14 - ��ǻ�����α��� | ��Z01�� | | 16 -(3 rows) - -select *,position('��' in ���) from ͪߩѦ���; - ��� | ���ڵ� | ���1a�� | strpos -------------------+----------+------------+-------- - ��ǻ�͵��÷��� | ѦA01߾ | | 4 - ��ǻ�ͱ��Ƚ� | ��B10�� | | 0 - ��ǻ�����α��� | ��Z01�� | | 0 -(3 rows) - -select *,substring(��� from 3 for 4) from ͪߩѦ���; - ��� | ���ڵ� | ���1a�� | substr -------------------+----------+------------+---------- - ��ǻ�͵��÷��� | ѦA01߾ | | �͵��� - ��ǻ�ͱ��Ƚ� | ��B10�� | | �ͱ��� - ��ǻ�����α��� | ��Z01�� | | �����α� -(3 rows) - diff --git a/src/test/regress/expected/euc_tw.out b/src/test/regress/expected/euc_tw.out deleted file mode 100644 index cf855809ab7..00000000000 --- a/src/test/regress/expected/euc_tw.out +++ /dev/null @@ -1,85 +0,0 @@ -drop table ��ٸ����; -ERROR: Relation '��ٸ����' does not exist -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 ��ٸ����; - ����ɱ | ��Ƴ��� | ���� ---------+------------------+--------- - ����� | ������ | ơA01�� - ������ | ����ȴ����Ƴ | ��B10�� - ���� | ӡ��ϴǹȴ����Ƴ | ��Z01Ħ -(3 rows) - -select * from ��ٸ���� where ���� = '��Z01Ħ'; - ����ɱ | ��Ƴ��� | ���� ---------+------------------+--------- - ���� | ӡ��ϴǹȴ����Ƴ | ��Z01Ħ -(1 row) - -select * from ��ٸ���� where ���� ~* '��z01Ħ'; - ����ɱ | ��Ƴ��� | ���� ---------+------------------+--------- - ���� | ӡ��ϴǹȴ����Ƴ | ��Z01Ħ -(1 row) - -select * from ��ٸ���� where ���� like '_Z01_'; - ����ɱ | ��Ƴ��� | ���� ---------+------------------+--------- - ���� | ӡ��ϴǹȴ����Ƴ | ��Z01Ħ -(1 row) - -select * from ��ٸ���� where ���� like '_Z%'; - ����ɱ | ��Ƴ��� | ���� ---------+------------------+--------- - ���� | ӡ��ϴǹȴ����Ƴ | ��Z01Ħ -(1 row) - -select * from ��ٸ���� where ��Ƴ��� ~ '����[��ش��]'; - ����ɱ | ��Ƴ��� | ���� ---------+----------+--------- - ����� | ������ | ơA01�� -(1 row) - -select * from ��ٸ���� where ��Ƴ��� ~* '����[��ش��]'; - ����ɱ | ��Ƴ��� | ���� ---------+----------+--------- - ����� | ������ | ơA01�� -(1 row) - -select *, character_length(����ɱ) from ��ٸ����; - ����ɱ | ��Ƴ��� | ���� | char_length ---------+------------------+---------+------------- - ����� | ������ | ơA01�� | 3 - ������ | ����ȴ����Ƴ | ��B10�� | 3 - ���� | ӡ��ϴǹȴ����Ƴ | ��Z01Ħ | 3 -(3 rows) - -select *, octet_length(����ɱ) from ��ٸ����; - ����ɱ | ��Ƴ��� | ���� | octet_length ---------+------------------+---------+-------------- - ����� | ������ | ơA01�� | 6 - ������ | ����ȴ����Ƴ | ��B10�� | 6 - ���� | ӡ��ϴǹȴ����Ƴ | ��Z01Ħ | 6 -(3 rows) - -select *, position('ȴ��' in ��Ƴ���) from ��ٸ����; - ����ɱ | ��Ƴ��� | ���� | strpos ---------+------------------+---------+-------- - ����� | ������ | ơA01�� | 0 - ������ | ����ȴ����Ƴ | ��B10�� | 3 - ���� | ӡ��ϴǹȴ����Ƴ | ��Z01Ħ | 5 -(3 rows) - -select *, substring(��Ƴ��� from 3 for 6 ) from ��ٸ����; - ����ɱ | ��Ƴ��� | ���� | substr ---------+------------------+---------+-------------- - ����� | ������ | ơA01�� | ���� - ������ | ����ȴ����Ƴ | ��B10�� | ȴ����Ƴ - ���� | ӡ��ϴǹȴ����Ƴ | ��Z01Ħ | ϴǹȴ����Ƴ -(3 rows) - diff --git a/src/test/regress/expected/mule_internal.out b/src/test/regress/expected/mule_internal.out deleted file mode 100644 index bfcffc8490a..00000000000 --- a/src/test/regress/expected/mule_internal.out +++ /dev/null @@ -1,333 +0,0 @@ -drop table ��ג�������ђ��; -ERROR: Relation '��ג�������ђ��' does not exist -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 ��ג�������ђ��; - ��ђ�� | �ʬ������������ | ������1a������ ------------------------------------------+-----------------+---------------- - ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | - ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | - ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | -(3 rows) - -select * from ��ג�������ђ�� where �ʬ������������ = '���Z01���'; - ��ђ�� | �ʬ������������ | ������1a������ ---------------------------------------+-----------------+---------------- - ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | -(1 row) - -select * from ��ג�������ђ�� where �ʬ������������ ~* '���z01���'; - ��ђ�� | �ʬ������������ | ������1a������ ---------------------------------------+-----------------+---------------- - ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | -(1 row) - -select * from ��ג�������ђ�� where �ʬ������������ like '_Z01_'; - ��ђ�� | �ʬ������������ | ������1a������ ---------------------------------------+-----------------+---------------- - ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | -(1 row) - -select * from ��ג�������ђ�� where �ʬ������������ like '_Z%'; - ��ђ�� | �ʬ������������ | ������1a������ ---------------------------------------+-----------------+---------------- - ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | -(1 row) - -select * from ��ג�������ђ�� where ��ђ�� ~ '������Ԓ�咡����[��ǒ��]'; - ��ђ�� | �ʬ������������ | ������1a������ ------------------------------------------+-----------------+---------------- - ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | - ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | -(2 rows) - -select * from ��ג�������ђ�� where ��ђ�� ~* '������Ԓ�咡����[��ǒ��]'; - ��ђ�� | �ʬ������������ | ������1a������ ------------------------------------------+-----------------+---------------- - ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | - ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | -(2 rows) - -select *,character_length(��ђ��) from ��ג�������ђ��; - ��ђ�� | �ʬ������������ | ������1a������ | char_length ------------------------------------------+-----------------+----------------+------------- - ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | | 12 - ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | | 13 - ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | | 12 -(3 rows) - -select *,octet_length(��ђ��) from ��ג�������ђ��; - ��ђ�� | �ʬ������������ | ������1a������ | octet_length ------------------------------------------+-----------------+----------------+-------------- - ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | | 36 - ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | | 39 - ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | | 36 -(3 rows) - -select *,position('���' in ��ђ��) from ��ג�������ђ��; - ��ђ�� | �ʬ������������ | ������1a������ | strpos ------------------------------------------+-----------------+----------------+-------- - ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | | 7 - ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | | 0 - ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | | 0 -(3 rows) - -select *,substring(��ђ�� from 10 for 4) from ��ג�������ђ��; - ��ђ�� | �ʬ������������ | ������1a������ | substr ------------------------------------------+-----------------+----------------+-------------- - ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | | ��ג�쒥� - ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | | �����Ò����� - ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | | ��钥ޒ�� -(3 rows) - -drop table ��Ƒ�㑻�������; -ERROR: Relation '��Ƒ�㑻�������' does not exist -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 ��Ƒ�㑻�������; - ������ | ��֑����� | ����ע1a ------------------+-----------+---------- - ����ԑ�ԑʾ��� | ���A01��� | - ����ԑͼ��� | ���B01��� | - ����ԑ�̑��Ա | ���Z01��� | -(3 rows) - -select * from ��Ƒ�㑻������� where ��֑����� = '���Z01���'; - ������ | ��֑����� | ����ע1a ------------------+-----------+---------- - ����ԑ�̑��Ա | ���Z01��� | -(1 row) - -select * from ��Ƒ�㑻������� where ��֑����� ~* '���z01���'; - ������ | ��֑����� | ����ע1a ------------------+-----------+---------- - ����ԑ�̑��Ա | ���Z01��� | -(1 row) - -select * from ��Ƒ�㑻������� where ��֑����� like '_Z01_'; - ������ | ��֑����� | ����ע1a ------------------+-----------+---------- - ����ԑ�̑��Ա | ���Z01��� | -(1 row) - -select * from ��Ƒ�㑻������� where ��֑����� like '_Z%'; - ������ | ��֑����� | ����ע1a ------------------+-----------+---------- - ����ԑ�̑��Ա | ���Z01��� | -(1 row) - -select * from ��Ƒ�㑻������� where ������ ~ '�����[��ԑͼ]'; - ������ | ��֑����� | ����ע1a ------------------+-----------+---------- - ����ԑ�ԑʾ��� | ���A01��� | - ����ԑͼ��� | ���B01��� | -(2 rows) - -select * from ��Ƒ�㑻������� where ������ ~* '�����[��ԑͼ]'; - ������ | ��֑����� | ����ע1a ------------------+-----------+---------- - ����ԑ�ԑʾ��� | ���A01��� | - ����ԑͼ��� | ���B01��� | -(2 rows) - -select *,character_length(������) from ��Ƒ�㑻�������; - ������ | ��֑����� | ����ע1a | char_length ------------------+-----------+----------+------------- - ����ԑ�ԑʾ��� | ���A01��� | | 5 - ����ԑͼ��� | ���B01��� | | 4 - ����ԑ�̑��Ա | ���Z01��� | | 5 -(3 rows) - -select *,octet_length(������) from ��Ƒ�㑻�������; - ������ | ��֑����� | ����ע1a | octet_length ------------------+-----------+----------+-------------- - ����ԑ�ԑʾ��� | ���A01��� | | 15 - ����ԑͼ��� | ���B01��� | | 12 - ����ԑ�̑��Ա | ���Z01��� | | 15 -(3 rows) - -select *,position('���' in ������) from ��Ƒ�㑻�������; - ������ | ��֑����� | ����ע1a | strpos ------------------+-----------+----------+-------- - ����ԑ�ԑʾ��� | ���A01��� | | 3 - ����ԑͼ��� | ���B01��� | | 0 - ����ԑ�̑��Ա | ���Z01��� | | 0 -(3 rows) - -select *,substring(������ from 3 for 4) from ��Ƒ�㑻�������; - ������ | ��֑����� | ����ע1a | substr ------------------+-----------+----------+----------- - ����ԑ�ԑʾ��� | ���A01��� | | ��ԑʾ��� - ����ԑͼ��� | ���B01��� | | �ͼ��� - ����ԑ�̑��Ա | ���Z01��� | | ��̑��Ա -(3 rows) - -drop table �ͪ�ߩ�Ѧ��듾�; -ERROR: Relation '�ͪ�ߩ�Ѧ��듾�' does not exist -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 �ͪ�ߩ�Ѧ��듾�; - ��듾� | ����ړ�� | ����1a�� ---------------------------+--------------+---------------- - ��ēǻ��͓���Ó����� | �ѦA01�߾ | - ��ēǻ��͓�ד����ȓ�� | ���B10��� | - ��ēǻ��͓����Γ�ד����� | ���Z01��� | -(3 rows) - -select * from �ͪ�ߩ�Ѧ��듾� where ����ړ�� = '���Z01���'; - ��듾� | ����ړ�� | ����1a�� ---------------------------+--------------+---------------- - ��ēǻ��͓����Γ�ד����� | ���Z01��� | -(1 row) - -select * from �ͪ�ߩ�Ѧ��듾� where ����ړ�� ~* '���z01���'; - ��듾� | ����ړ�� | ����1a�� ---------------------------+--------------+---------------- - ��ēǻ��͓����Γ�ד����� | ���Z01��� | -(1 row) - -select * from �ͪ�ߩ�Ѧ��듾� where ����ړ�� like '_Z01_'; - ��듾� | ����ړ�� | ����1a�� ---------------------------+--------------+---------------- - ��ēǻ��͓����Γ�ד����� | ���Z01��� | -(1 row) - -select * from �ͪ�ߩ�Ѧ��듾� where ����ړ�� like '_Z%'; - ��듾� | ����ړ�� | ����1a�� ---------------------------+--------------+---------------- - ��ēǻ��͓����Γ�ד����� | ���Z01��� | -(1 row) - -select * from �ͪ�ߩ�Ѧ��듾� where ��듾� ~ '��ēǻ���[����]'; - ��듾� | ����ړ�� | ����1a�� ---------------------------+--------------+---------------- - ��ēǻ��͓���Ó����� | �ѦA01�߾ | - ��ēǻ��͓�ד����ȓ�� | ���B10��� | -(2 rows) - -select * from �ͪ�ߩ�Ѧ��듾� where ��듾� ~* '��ēǻ���[����]'; - ��듾� | ����ړ�� | ����1a�� ---------------------------+--------------+---------------- - ��ēǻ��͓���Ó����� | �ѦA01�߾ | - ��ēǻ��͓�ד����ȓ�� | ���B10��� | -(2 rows) - -select *,character_length(��듾�) from �ͪ�ߩ�Ѧ��듾�; - ��듾� | ����ړ�� | ����1a�� | char_length ---------------------------+--------------+----------------+------------- - ��ēǻ��͓���Ó����� | �ѦA01�߾ | | 8 - ��ēǻ��͓�ד����ȓ�� | ���B10��� | | 7 - ��ēǻ��͓����Γ�ד����� | ���Z01��� | | 8 -(3 rows) - -select *,octet_length(��듾�) from �ͪ�ߩ�Ѧ��듾�; - ��듾� | ����ړ�� | ����1a�� | octet_length ---------------------------+--------------+----------------+-------------- - ��ēǻ��͓���Ó����� | �ѦA01�߾ | | 24 - ��ēǻ��͓�ד����ȓ�� | ���B10��� | | 21 - ��ēǻ��͓����Γ�ד����� | ���Z01��� | | 24 -(3 rows) - -select *,position('���' in ��듾�) from �ͪ�ߩ�Ѧ��듾�; - ��듾� | ����ړ�� | ����1a�� | strpos ---------------------------+--------------+----------------+-------- - ��ēǻ��͓���Ó����� | �ѦA01�߾ | | 4 - ��ēǻ��͓�ד����ȓ�� | ���B10��� | | 0 - ��ēǻ��͓����Γ�ד����� | ���Z01��� | | 0 -(3 rows) - -select *,substring(��듾� from 3 for 4) from �ͪ�ߩ�Ѧ��듾�; - ��듾� | ����ړ�� | ����1a�� | substr ---------------------------+--------------+----------------+-------------- - ��ēǻ��͓���Ó����� | �ѦA01�߾ | | ��͓���� - ��ēǻ��͓�ד����ȓ�� | ���B10��� | | ��͓�ד����� - ��ēǻ��͓����Γ�ד����� | ���Z01��� | | ��͓����Γ�� -(3 rows) - -drop table test; -ERROR: Relation 'test' does not exist -create table test (t text); -insert into test values('ENGLISH'); -insert into test values('FRAN��AIS'); -insert into test values('ESPA��OL'); -insert into test values('��SLENSKA'); -insert into test values('ENGLISH FRAN��AIS ESPA��OL ��SLENSKA'); -vacuum test; -select * from test; - t --------------------------------------- - ENGLISH - FRAN��AIS - ESPA��OL - ��SLENSKA - ENGLISH FRAN��AIS ESPA��OL ��SLENSKA -(5 rows) - -select * from test where t = 'ESPA��OL'; - t ----------- - ESPA��OL -(1 row) - -select * from test where t ~* 'espa��ol'; - t --------------------------------------- - ESPA��OL - ENGLISH FRAN��AIS ESPA��OL ��SLENSKA -(2 rows) - -select *,character_length(t) from test; - t | char_length ---------------------------------------+------------- - ENGLISH | 7 - FRAN��AIS | 8 - ESPA��OL | 7 - ��SLENSKA | 8 - ENGLISH FRAN��AIS ESPA��OL ��SLENSKA | 33 -(5 rows) - -select *,octet_length(t) from test; - t | octet_length ---------------------------------------+-------------- - ENGLISH | 7 - FRAN��AIS | 9 - ESPA��OL | 8 - ��SLENSKA | 9 - ENGLISH FRAN��AIS ESPA��OL ��SLENSKA | 36 -(5 rows) - -select *,position('L' in t) from test; - t | strpos ---------------------------------------+-------- - ENGLISH | 4 - FRAN��AIS | 0 - ESPA��OL | 7 - ��SLENSKA | 3 - ENGLISH FRAN��AIS ESPA��OL ��SLENSKA | 4 -(5 rows) - -select *,substring(t from 3 for 4) from test; - t | substr ---------------------------------------+-------- - ENGLISH | GLIS - FRAN��AIS | AN��A - ESPA��OL | PA��O - ��SLENSKA | LENS - ENGLISH FRAN��AIS ESPA��OL ��SLENSKA | GLIS -(5 rows) - diff --git a/src/test/regress/expected/sql_ascii.out b/src/test/regress/expected/sql_ascii.out deleted file mode 100644 index 5b7c03575fd..00000000000 --- a/src/test/regress/expected/sql_ascii.out +++ /dev/null @@ -1,87 +0,0 @@ -drop table computer_terms; -ERROR: Relation 'computer_terms' does not exist -create table computer_terms(term text, category text, comments char(16)); -create index computer_terms_index1 on computer_terms using btree(term); -create index computer_terms_index2 on computer_terms using btree(category); -insert into computer_terms values('computer display', 'X-A01-Y', 'a comment 1'); -insert into computer_terms values('computer graphics', 'T-B01-Y', 'a comment 2'); -insert into computer_terms values('computer programmer', 'S-Z01-Y', 'a comment 3'); -vacuum computer_terms; -select * from computer_terms; - term | category | comments ----------------------+----------+------------------ - computer display | X-A01-Y | a comment 1 - computer graphics | T-B01-Y | a comment 2 - computer programmer | S-Z01-Y | a comment 3 -(3 rows) - -select * from computer_terms where category = 'X-A01-Y'; - term | category | comments -------------------+----------+------------------ - computer display | X-A01-Y | a comment 1 -(1 row) - -select * from computer_terms where category ~* 'x-a01-y'; - term | category | comments -------------------+----------+------------------ - computer display | X-A01-Y | a comment 1 -(1 row) - -select * from computer_terms where category like '_-A01-_'; - term | category | comments -------------------+----------+------------------ - computer display | X-A01-Y | a comment 1 -(1 row) - -select * from computer_terms where category like '_-A%'; - term | category | comments -------------------+----------+------------------ - computer display | X-A01-Y | a comment 1 -(1 row) - -select * from computer_terms where term ~ 'computer [dg]'; - term | category | comments --------------------+----------+------------------ - computer display | X-A01-Y | a comment 1 - computer graphics | T-B01-Y | a comment 2 -(2 rows) - -select * from computer_terms where term ~* 'computer [DG]'; - term | category | comments --------------------+----------+------------------ - computer display | X-A01-Y | a comment 1 - computer graphics | T-B01-Y | a comment 2 -(2 rows) - -select *,character_length(term) from computer_terms; - term | category | comments | char_length ----------------------+----------+------------------+------------- - computer display | X-A01-Y | a comment 1 | 16 - computer graphics | T-B01-Y | a comment 2 | 17 - computer programmer | S-Z01-Y | a comment 3 | 19 -(3 rows) - -select *,octet_length(term) from computer_terms; - term | category | comments | octet_length ----------------------+----------+------------------+-------------- - computer display | X-A01-Y | a comment 1 | 16 - computer graphics | T-B01-Y | a comment 2 | 17 - computer programmer | S-Z01-Y | a comment 3 | 19 -(3 rows) - -select *,position('s' in term) from computer_terms; - term | category | comments | strpos ----------------------+----------+------------------+-------- - computer display | X-A01-Y | a comment 1 | 12 - computer graphics | T-B01-Y | a comment 2 | 17 - computer programmer | S-Z01-Y | a comment 3 | 0 -(3 rows) - -select *,substring(term from 10 for 4) from computer_terms; - term | category | comments | substr ----------------------+----------+------------------+-------- - computer display | X-A01-Y | a comment 1 | disp - computer graphics | T-B01-Y | a comment 2 | grap - computer programmer | S-Z01-Y | a comment 3 | prog -(3 rows) - diff --git a/src/test/regress/sql/drop.sql b/src/test/regress/sql/drop.sql deleted file mode 100644 index da9297d8b61..00000000000 --- a/src/test/regress/sql/drop.sql +++ /dev/null @@ -1,246 +0,0 @@ --- --- drop.source --- - --- --- this will fail if the user is not the postgres superuser. --- if it does, don't worry about it (you can turn usersuper --- back on as "postgres"). too many people don't follow --- directions and run this as "postgres", though... --- -UPDATE pg_user - SET usesuper = 't'::bool - WHERE usename = 'postgres'; - - --- --- FUNCTION REMOVAL --- -DROP FUNCTION hobbies(person); - -DROP FUNCTION hobby_construct(text,text); - -DROP FUNCTION equipment(hobbies_r); - -DROP FUNCTION user_relns(); - -DROP FUNCTION widget_in(cstring); - -DROP FUNCTION widget_out(widget); - -DROP FUNCTION pt_in_widget(point,widget); - -DROP FUNCTION overpaid(emp); - -DROP FUNCTION boxarea(box); - -DROP FUNCTION interpt_pp(path,path); - -DROP FUNCTION reverse_name(name); - -DROP FUNCTION oldstyle_length(int4, text); - --- --- OPERATOR REMOVAL --- -DROP OPERATOR ## (path, path); - -DROP OPERATOR <% (point, widget); - --- left unary -DROP OPERATOR @#@ (none, int4); - --- right unary -DROP OPERATOR #@# (int4, none); - --- right unary -DROP OPERATOR #%# (int4, none); - - --- --- ABSTRACT DATA TYPE REMOVAL --- -DROP TYPE city_budget; - -DROP TYPE widget; - - --- --- RULE REMOVAL --- (is also tested in queries.source) --- - --- --- AGGREGATE REMOVAL --- -DROP AGGREGATE newavg (int4); - -DROP AGGREGATE newsum (int4); - -DROP AGGREGATE newcnt (int4); - - --- --- CLASS REMOVAL --- (inheritance hierarchies are deleted in reverse order) --- - --- --- DROP ancillary data structures (i.e. indices) --- -DROP INDEX onek_unique1; - -DROP INDEX onek_unique2; - -DROP INDEX onek_hundred; - -DROP INDEX onek_stringu1; - -DROP INDEX tenk1_unique1; - -DROP INDEX tenk1_unique2; - -DROP INDEX tenk1_hundred; - -DROP INDEX tenk2_unique1; - -DROP INDEX tenk2_unique2; - -DROP INDEX tenk2_hundred; - --- DROP INDEX onek2_u1_prtl; - --- DROP INDEX onek2_u2_prtl; - --- DROP INDEX onek2_stu1_prtl; - -DROP INDEX rect2ind; - -DROP INDEX rix; - -DROP INDEX iix; - -DROP INDEX six; - -DROP INDEX hash_i4_index; - -DROP INDEX hash_name_index; - -DROP INDEX hash_txt_index; - -DROP INDEX hash_f8_index; - --- DROP INDEX hash_ovfl_index; - -DROP INDEX bt_i4_index; - -DROP INDEX bt_name_index; - -DROP INDEX bt_txt_index; - -DROP INDEX bt_f8_index; - - -DROP TABLE onek; - -DROP TABLE onek2; - -DROP TABLE tenk1; - -DROP TABLE tenk2; - -DROP TABLE Bprime; - - -DROP TABLE hobbies_r; - -DROP TABLE equipment_r; - - -DROP TABLE aggtest; - -DROP TABLE xacttest; - -DROP TABLE arrtest; - -DROP TABLE iportaltest; - - -DROP TABLE f_star; - -DROP TABLE e_star; - -DROP TABLE d_star; - -DROP TABLE c_star; - -DROP TABLE b_star; - -DROP TABLE a_star; - - --- --- must be in reverse inheritance order --- -DROP TABLE stud_emp; - -DROP TABLE student; - -DROP TABLE slow_emp4000; - -DROP TABLE fast_emp4000; - -DROP TABLE emp; - -DROP TABLE person; - - -DROP TABLE ramp; - -DROP TABLE real_city; - -DROP TABLE dept; - -DROP TABLE ihighway; - -DROP TABLE shighway; - -DROP TABLE road; - -DROP TABLE city; - - -DROP TABLE hash_i4_heap; - -DROP TABLE hash_name_heap; - -DROP TABLE hash_txt_heap; - -DROP TABLE hash_f8_heap; - --- DROP TABLE hash_ovfl_heap; - -DROP TABLE bt_i4_heap; - -DROP TABLE bt_name_heap; - -DROP TABLE bt_txt_heap; - -DROP TABLE bt_f8_heap; - - -DROP TABLE ABSTIME_TBL; - -DROP TABLE RELTIME_TBL; - -DROP TABLE TINTERVAL_TBL; - --- --- VIRTUAL CLASS REMOVAL --- (also tests removal of rewrite rules) --- -DROP VIEW street; - -DROP VIEW iexit; - -DROP VIEW toyemp; diff --git a/src/test/regress/sql/euc_cn.sql b/src/test/regress/sql/euc_cn.sql deleted file mode 100644 index 7cd0b9b0e25..00000000000 --- a/src/test/regress/sql/euc_cn.sql +++ /dev/null @@ -1,19 +0,0 @@ -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 ���� ~* '����[��ͼ]'; -select *,character_length(����) from ���������; -select *,octet_length(����) from ���������; -select *,position('��' in ����) from ���������; -select *,substring(���� from 3 for 4) from ���������; diff --git a/src/test/regress/sql/euc_jp.sql b/src/test/regress/sql/euc_jp.sql deleted file mode 100644 index 2021205bf45..00000000000 --- a/src/test/regress/sql/euc_jp.sql +++ /dev/null @@ -1,19 +0,0 @@ -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 �Ѹ� ~* '����ԥ塼��[�ǥ�]'; -select *,character_length(�Ѹ�) from �����Ѹ�; -select *,octet_length(�Ѹ�) from �����Ѹ�; -select *,position('��' in �Ѹ�) from �����Ѹ�; -select *,substring(�Ѹ� from 10 for 4) from �����Ѹ�; diff --git a/src/test/regress/sql/euc_kr.sql b/src/test/regress/sql/euc_kr.sql deleted file mode 100644 index cf9e07fd1c6..00000000000 --- a/src/test/regress/sql/euc_kr.sql +++ /dev/null @@ -1,19 +0,0 @@ -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 ��� ~* '��ǻ��[���]'; -select *,character_length(���) from ͪߩѦ���; -select *,octet_length(���) from ͪߩѦ���; -select *,position('��' in ���) from ͪߩѦ���; -select *,substring(��� from 3 for 4) from ͪߩѦ���; diff --git a/src/test/regress/sql/euc_tw.sql b/src/test/regress/sql/euc_tw.sql deleted file mode 100644 index 79f3def432d..00000000000 --- a/src/test/regress/sql/euc_tw.sql +++ /dev/null @@ -1,20 +0,0 @@ -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/sql/mule_internal.sql b/src/test/regress/sql/mule_internal.sql deleted file mode 100644 index 2e381f0f7ed..00000000000 --- a/src/test/regress/sql/mule_internal.sql +++ /dev/null @@ -1,72 +0,0 @@ -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 ��ђ�� ~* '������Ԓ�咡����[��ǒ��]'; -select *,character_length(��ђ��) from ��ג�������ђ��; -select *,octet_length(��ђ��) from ��ג�������ђ��; -select *,position('���' in ��ђ��) from ��ג�������ђ��; -select *,substring(��ђ�� from 10 for 4) from ��ג�������ђ��; -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 ������ ~* '�����[��ԑͼ]'; -select *,character_length(������) from ��Ƒ�㑻�������; -select *,octet_length(������) from ��Ƒ�㑻�������; -select *,position('���' in ������) from ��Ƒ�㑻�������; -select *,substring(������ from 3 for 4) from ��Ƒ�㑻�������; -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 ��듾� ~* '��ēǻ���[����]'; -select *,character_length(��듾�) from �ͪ�ߩ�Ѧ��듾�; -select *,octet_length(��듾�) from �ͪ�ߩ�Ѧ��듾�; -select *,position('���' in ��듾�) from �ͪ�ߩ�Ѧ��듾�; -select *,substring(��듾� from 3 for 4) from �ͪ�ߩ�Ѧ��듾�; -drop table test; -create table test (t text); -insert into test values('ENGLISH'); -insert into test values('FRAN��AIS'); -insert into test values('ESPA��OL'); -insert into test values('��SLENSKA'); -insert into test values('ENGLISH FRAN��AIS ESPA��OL ��SLENSKA'); -vacuum test; -select * from test; -select * from test where t = 'ESPA��OL'; -select * from test where t ~* 'espa��ol'; -select *,character_length(t) from test; -select *,octet_length(t) from test; -select *,position('L' in t) from test; -select *,substring(t from 3 for 4) from test; diff --git a/src/test/regress/sql/sql_ascii.sql b/src/test/regress/sql/sql_ascii.sql deleted file mode 100644 index 0470f49f92d..00000000000 --- a/src/test/regress/sql/sql_ascii.sql +++ /dev/null @@ -1,19 +0,0 @@ -drop table computer_terms; -create table computer_terms(term text, category text, comments char(16)); -create index computer_terms_index1 on computer_terms using btree(term); -create index computer_terms_index2 on computer_terms using btree(category); -insert into computer_terms values('computer display', 'X-A01-Y', 'a comment 1'); -insert into computer_terms values('computer graphics', 'T-B01-Y', 'a comment 2'); -insert into computer_terms values('computer programmer', 'S-Z01-Y', 'a comment 3'); -vacuum computer_terms; -select * from computer_terms; -select * from computer_terms where category = 'X-A01-Y'; -select * from computer_terms where category ~* 'x-a01-y'; -select * from computer_terms where category like '_-A01-_'; -select * from computer_terms where category like '_-A%'; -select * from computer_terms where term ~ 'computer [dg]'; -select * from computer_terms where term ~* 'computer [DG]'; -select *,character_length(term) from computer_terms; -select *,octet_length(term) from computer_terms; -select *,position('s' in term) from computer_terms; -select *,substring(term from 10 for 4) from computer_terms; |
