diff options
author | Tatsuo Ishii | 2000-02-27 10:21:16 +0000 |
---|---|---|
committer | Tatsuo Ishii | 2000-02-27 10:21:16 +0000 |
commit | 97e38d32b8b618236a9690b9ee820ab8cc94d0ea (patch) | |
tree | 9085f9cb8700b227927a70c7cbd8405cdb6b86c5 | |
parent | 570bb30d73a73d0605903399a8d8d1c8c00d497d (diff) |
Update expected files due to the psql format change
-rw-r--r-- | src/test/mb/expected/big5.out | 124 | ||||
-rw-r--r-- | src/test/mb/expected/euc_cn.out | 128 | ||||
-rw-r--r-- | src/test/mb/expected/euc_jp.out | 38 | ||||
-rw-r--r-- | src/test/mb/expected/euc_kr.out | 128 | ||||
-rw-r--r-- | src/test/mb/expected/euc_tw.out | 124 | ||||
-rw-r--r-- | src/test/mb/expected/mule_internal.out | 498 | ||||
-rw-r--r-- | src/test/mb/expected/sjis.out | 40 | ||||
-rw-r--r-- | src/test/mb/expected/unicode.out | 128 |
8 files changed, 604 insertions, 604 deletions
diff --git a/src/test/mb/expected/big5.out b/src/test/mb/expected/big5.out index 0ca86167ece..702579eebaa 100644 --- a/src/test/mb/expected/big5.out +++ b/src/test/mb/expected/big5.out @@ -1,84 +1,84 @@ -QUERY: drop table �t�Ӹ��; -QUERY: create table �t�Ӹ�� (��~�O text, ���q���Y varchar, �a�} varchar(16)); -QUERY: create index �t�Ӹ��index1 on �t�Ӹ�� using btree (��~�O); -QUERY: create index �t�Ӹ��index2 on �t�Ӹ�� using hash (���q���Y); -QUERY: insert into �t�Ӹ�� values ('�q���~', '�F�F���', '�_A01��'); -QUERY: insert into �t�Ӹ�� values ('�s�y�~', '�]���������q', '��B10��'); -QUERY: insert into �t�Ӹ�� values ('�\���~', '�����ѥ��������q', '��Z01�E'); -QUERY: vacuum �t�Ӹ��; -QUERY: select * from �t�Ӹ��; -��~�O|���q���Y |�a�} -------+----------------+------- -�q���~|�F�F��� |�_A01�� -�s�y�~|�]���������q |��B10�� -�\���~|�����ѥ��������q|��Z01�E +drop table �t�Ӹ�� +create table �t�Ӹ�� (��~�O text, ���q���Y varchar, �a�} varchar(16)) +create index �t�Ӹ��index1 on �t�Ӹ�� using btree (��~�O) +create index �t�Ӹ��index2 on �t�Ӹ�� using hash (���q���Y) +insert into �t�Ӹ�� values ('�q���~', '�F�F���', '�_A01��') +insert into �t�Ӹ�� values ('�s�y�~', '�]���������q', '��B10��') +insert into �t�Ӹ�� values ('�\���~', '�����ѥ��������q', '��Z01�E') +vacuum �t�Ӹ�� +select * from �t�Ӹ�� + ��~�O | ���q���Y | �a�} +--------+------------------+--------- + �q���~ | �F�F��� | �_A01�� + �s�y�~ | �]���������q | ��B10�� + �\���~ | �����ѥ��������q | ��Z01�E (3 rows) -QUERY: select * from �t�Ӹ�� where �a�} = '��Z01�E'; -��~�O|���q���Y |�a�} -------+----------------+------- -�\���~|�����ѥ��������q|��Z01�E +select * from �t�Ӹ�� where �a�} = '��Z01�E' + ��~�O | ���q���Y | �a�} +--------+------------------+--------- + �\���~ | �����ѥ��������q | ��Z01�E (1 row) -QUERY: select * from �t�Ӹ�� where �a�} ~* '��z01�E'; -��~�O|���q���Y |�a�} -------+----------------+------- -�\���~|�����ѥ��������q|��Z01�E +select * from �t�Ӹ�� where �a�} ~* '��z01�E' + ��~�O | ���q���Y | �a�} +--------+------------------+--------- + �\���~ | �����ѥ��������q | ��Z01�E (1 row) -QUERY: select * from �t�Ӹ�� where �a�} like '_Z01_'; -��~�O|���q���Y |�a�} -------+----------------+------- -�\���~|�����ѥ��������q|��Z01�E +select * from �t�Ӹ�� where �a�} like '_Z01_' + ��~�O | ���q���Y | �a�} +--------+------------------+--------- + �\���~ | �����ѥ��������q | ��Z01�E (1 row) -QUERY: select * from �t�Ӹ�� where �a�} like '_Z%'; -��~�O|���q���Y |�a�} -------+----------------+------- -�\���~|�����ѥ��������q|��Z01�E +select * from �t�Ӹ�� where �a�} like '_Z%' + ��~�O | ���q���Y | �a�} +--------+------------------+--------- + �\���~ | �����ѥ��������q | ��Z01�E (1 row) -QUERY: select * from �t�Ӹ�� where ���q���Y ~ '�F�F��[�H�O��]'; -��~�O|���q���Y|�a�} -------+--------+------- -�q���~|�F�F���|�_A01�� +select * from �t�Ӹ�� where ���q���Y ~ '�F�F��[�H�O��]' + ��~�O | ���q���Y | �a�} +--------+----------+--------- + �q���~ | �F�F��� | �_A01�� (1 row) -QUERY: select * from �t�Ӹ�� where ���q���Y ~* '�F�F��[�H�O��]'; -��~�O|���q���Y|�a�} -------+--------+------- -�q���~|�F�F���|�_A01�� +select * from �t�Ӹ�� where ���q���Y ~* '�F�F��[�H�O��]' + ��~�O | ���q���Y | �a�} +--------+----------+--------- + �q���~ | �F�F��� | �_A01�� (1 row) -QUERY: select *, character_length(��~�O) from �t�Ӹ��; -��~�O|���q���Y |�a�} |length -------+----------------+-------+------ -�q���~|�F�F��� |�_A01��| 3 -�s�y�~|�]���������q |��B10��| 3 -�\���~|�����ѥ��������q|��Z01�E| 3 +select *, character_length(��~�O) from �t�Ӹ�� + ��~�O | ���q���Y | �a�} | length +--------+------------------+---------+-------- + �q���~ | �F�F��� | �_A01�� | 3 + �s�y�~ | �]���������q | ��B10�� | 3 + �\���~ | �����ѥ��������q | ��Z01�E | 3 (3 rows) -QUERY: select *, octet_length(��~�O) from �t�Ӹ��; -��~�O|���q���Y |�a�} |octet_length -------+----------------+-------+------------ -�q���~|�F�F��� |�_A01��| 6 -�s�y�~|�]���������q |��B10��| 6 -�\���~|�����ѥ��������q|��Z01�E| 6 +select *, octet_length(��~�O) from �t�Ӹ�� + ��~�O | ���q���Y | �a�} | octet_length +--------+------------------+---------+-------------- + �q���~ | �F�F��� | �_A01�� | 6 + �s�y�~ | �]���������q | ��B10�� | 6 + �\���~ | �����ѥ��������q | ��Z01�E | 6 (3 rows) -QUERY: select *, position('����' in ���q���Y) from �t�Ӹ��; -��~�O|���q���Y |�a�} |strpos -------+----------------+-------+------ -�q���~|�F�F��� |�_A01��| 0 -�s�y�~|�]���������q |��B10��| 3 -�\���~|�����ѥ��������q|��Z01�E| 5 +select *, position('����' in ���q���Y) from �t�Ӹ�� + ��~�O | ���q���Y | �a�} | strpos +--------+------------------+---------+-------- + �q���~ | �F�F��� | �_A01�� | 0 + �s�y�~ | �]���������q | ��B10�� | 3 + �\���~ | �����ѥ��������q | ��Z01�E | 5 (3 rows) -QUERY: select *, substring(���q���Y from 3 for 6 ) from �t�Ӹ��; -��~�O|���q���Y |�a�} |substr -------+----------------+-------+------------ -�q���~|�F�F��� |�_A01��|��� -�s�y�~|�]���������q |��B10��|�������q -�\���~|�����ѥ��������q|��Z01�E|�ѥ��������q +select *, substring(���q���Y from 3 for 6 ) from �t�Ӹ�� + ��~�O | ���q���Y | �a�} | substr +--------+------------------+---------+-------------- + �q���~ | �F�F��� | �_A01�� | ��� + �s�y�~ | �]���������q | ��B10�� | �������q + �\���~ | �����ѥ��������q | ��Z01�E | �ѥ��������q (3 rows) diff --git a/src/test/mb/expected/euc_cn.out b/src/test/mb/expected/euc_cn.out index b9944f48fd8..93ff30c25af 100644 --- a/src/test/mb/expected/euc_cn.out +++ b/src/test/mb/expected/euc_cn.out @@ -1,87 +1,87 @@ -QUERY: drop table ���������; +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��| +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) -QUERY: select * from ��������� where ����� = '��Z01��'; -���� |����� |��ע1a -----------+-------+------ -���Գ���Ա|��Z01��| +select * from ��������� where ����� = '��Z01��' + ���� | ����� | ��ע1a +------------+---------+-------- + ���Գ���Ա | ��Z01�� | (1 row) -QUERY: select * from ��������� where ����� ~* '��z01��'; -���� |����� |��ע1a -----------+-------+------ -���Գ���Ա|��Z01��| +select * from ��������� where ����� ~* '��z01��' + ���� | ����� | ��ע1a +------------+---------+-------- + ���Գ���Ա | ��Z01�� | (1 row) -QUERY: select * from ��������� where ����� like '_Z01_'; -���� |����� |��ע1a -----------+-------+------ -���Գ���Ա|��Z01��| +select * from ��������� where ����� like '_Z01_' + ���� | ����� | ��ע1a +------------+---------+-------- + ���Գ���Ա | ��Z01�� | (1 row) -QUERY: select * from ��������� where ����� like '_Z%'; -���� |����� |��ע1a -----------+-------+------ -���Գ���Ա|��Z01��| +select * from ��������� where ����� like '_Z%' + ���� | ����� | ��ע1a +------------+---------+-------- + ���Գ���Ա | ��Z01�� | (1 row) -QUERY: select * from ��������� where ���� ~ '����[��ͼ]'; -���� |����� |��ע1a -----------+-------+------ -������ʾ��|��A01��| -����ͼ�� |��B01��| +select * from ��������� where ���� ~ '����[��ͼ]' + ���� | ����� | ��ע1a +------------+---------+-------- + ������ʾ�� | ��A01�� | + ����ͼ�� | ��B01�� | (2 rows) -QUERY: select * from ��������� where ���� ~* '����[��ͼ]'; -���� |����� |��ע1a -----------+-------+------ -������ʾ��|��A01��| -����ͼ�� |��B01��| +select * from ��������� where ���� ~* '����[��ͼ]' + ���� | ����� | ��ע1a +------------+---------+-------- + ������ʾ�� | ��A01�� | + ����ͼ�� | ��B01�� | (2 rows) -QUERY: select *,character_length(����) from ���������; -���� |����� |��ע1a|length -----------+-------+------+------ -������ʾ��|��A01��| | 5 -����ͼ�� |��B01��| | 4 -���Գ���Ա|��Z01��| | 5 +select *,character_length(����) from ��������� + ���� | ����� | ��ע1a | length +------------+---------+--------+-------- + ������ʾ�� | ��A01�� | | 5 + ����ͼ�� | ��B01�� | | 4 + ���Գ���Ա | ��Z01�� | | 5 (3 rows) -QUERY: select *,octet_length(����) from ���������; -���� |����� |��ע1a|octet_length -----------+-------+------+------------ -������ʾ��|��A01��| | 10 -����ͼ�� |��B01��| | 8 -���Գ���Ա|��Z01��| | 10 +select *,octet_length(����) from ��������� + ���� | ����� | ��ע1a | octet_length +------------+---------+--------+-------------- + ������ʾ�� | ��A01�� | | 10 + ����ͼ�� | ��B01�� | | 8 + ���Գ���Ա | ��Z01�� | | 10 (3 rows) -QUERY: select *,position('��' in ����) from ���������; -���� |����� |��ע1a|strpos -----------+-------+------+------ -������ʾ��|��A01��| | 3 -����ͼ�� |��B01��| | 0 -���Գ���Ա|��Z01��| | 0 +select *,position('��' in ����) from ��������� + ���� | ����� | ��ע1a | strpos +------------+---------+--------+-------- + ������ʾ�� | ��A01�� | | 3 + ����ͼ�� | ��B01�� | | 0 + ���Գ���Ա | ��Z01�� | | 0 (3 rows) -QUERY: select *,substring(���� from 3 for 4) from ���������; -���� |����� |��ע1a|substr -----------+-------+------+------ -������ʾ��|��A01��| |��ʾ�� -����ͼ�� |��B01��| |ͼ�� -���Գ���Ա|��Z01��| |����Ա +select *,substring(���� from 3 for 4) from ��������� + ���� | ����� | ��ע1a | substr +------------+---------+--------+-------- + ������ʾ�� | ��A01�� | | ��ʾ�� + ����ͼ�� | ��B01�� | | ͼ�� + ���Գ���Ա | ��Z01�� | | ����Ա (3 rows) diff --git a/src/test/mb/expected/euc_jp.out b/src/test/mb/expected/euc_jp.out index 6f38e998a89..838b0a8363c 100644 --- a/src/test/mb/expected/euc_jp.out +++ b/src/test/mb/expected/euc_jp.out @@ -1,13 +1,13 @@ -drop table �����Ѹ�; +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 �����Ѹ�; +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�� | @@ -15,45 +15,45 @@ select * from �����Ѹ�; ����ԥ塼���ץ�����ޡ� | ��Z01�� | (3 rows) -select * from �����Ѹ� where ʬ�ॳ���� = '��Z01��'; +select * from �����Ѹ� where ʬ�ॳ���� = '��Z01��' �Ѹ� | ʬ�ॳ���� | ����1a���� --------------------------+------------+------------ ����ԥ塼���ץ�����ޡ� | ��Z01�� | (1 row) -select * from �����Ѹ� where ʬ�ॳ���� ~* '��z01��'; +select * from �����Ѹ� where ʬ�ॳ���� ~* '��z01��' �Ѹ� | ʬ�ॳ���� | ����1a���� --------------------------+------------+------------ ����ԥ塼���ץ�����ޡ� | ��Z01�� | (1 row) -select * from �����Ѹ� where ʬ�ॳ���� like '_Z01_'; +select * from �����Ѹ� where ʬ�ॳ���� like '_Z01_' �Ѹ� | ʬ�ॳ���� | ����1a���� --------------------------+------------+------------ ����ԥ塼���ץ�����ޡ� | ��Z01�� | (1 row) -select * from �����Ѹ� where ʬ�ॳ���� like '_Z%'; +select * from �����Ѹ� where ʬ�ॳ���� like '_Z%' �Ѹ� | ʬ�ॳ���� | ����1a���� --------------------------+------------+------------ ����ԥ塼���ץ�����ޡ� | ��Z01�� | (1 row) -select * from �����Ѹ� where �Ѹ� ~ '����ԥ塼��[�ǥ�]'; +select * from �����Ѹ� where �Ѹ� ~ '����ԥ塼��[�ǥ�]' �Ѹ� | ʬ�ॳ���� | ����1a���� ----------------------------+------------+------------ ����ԥ塼���ǥ����ץ쥤 | ��A01�� | ����ԥ塼������ե��å��� | ʬB10�� | (2 rows) -select * from �����Ѹ� where �Ѹ� ~* '����ԥ塼��[�ǥ�]'; +select * from �����Ѹ� where �Ѹ� ~* '����ԥ塼��[�ǥ�]' �Ѹ� | ʬ�ॳ���� | ����1a���� ----------------------------+------------+------------ ����ԥ塼���ǥ����ץ쥤 | ��A01�� | ����ԥ塼������ե��å��� | ʬB10�� | (2 rows) -select *,character_length(�Ѹ�) from �����Ѹ�; +select *,character_length(�Ѹ�) from �����Ѹ� �Ѹ� | ʬ�ॳ���� | ����1a���� | length ----------------------------+------------+------------+-------- ����ԥ塼���ǥ����ץ쥤 | ��A01�� | | 12 @@ -61,7 +61,7 @@ select *,character_length(�Ѹ�) from �����Ѹ�; ����ԥ塼���ץ�����ޡ� | ��Z01�� | | 12 (3 rows) -select *,octet_length(�Ѹ�) from �����Ѹ�; +select *,octet_length(�Ѹ�) from �����Ѹ� �Ѹ� | ʬ�ॳ���� | ����1a���� | octet_length ----------------------------+------------+------------+-------------- ����ԥ塼���ǥ����ץ쥤 | ��A01�� | | 24 @@ -69,7 +69,7 @@ select *,octet_length(�Ѹ�) from �����Ѹ�; ����ԥ塼���ץ�����ޡ� | ��Z01�� | | 24 (3 rows) -select *,position('��' in �Ѹ�) from �����Ѹ�; +select *,position('��' in �Ѹ�) from �����Ѹ� �Ѹ� | ʬ�ॳ���� | ����1a���� | strpos ----------------------------+------------+------------+-------- ����ԥ塼���ǥ����ץ쥤 | ��A01�� | | 7 @@ -77,7 +77,7 @@ select *,position('��' in �Ѹ�) from �����Ѹ�; ����ԥ塼���ץ�����ޡ� | ��Z01�� | | 0 (3 rows) -select *,substring(�Ѹ� from 10 for 4) from �����Ѹ�; +select *,substring(�Ѹ� from 10 for 4) from �����Ѹ� �Ѹ� | ʬ�ॳ���� | ����1a���� | substr ----------------------------+------------+------------+---------- ����ԥ塼���ǥ����ץ쥤 | ��A01�� | | �ץ쥤 diff --git a/src/test/mb/expected/euc_kr.out b/src/test/mb/expected/euc_kr.out index 9d3ca8ce3dd..7899344928e 100644 --- a/src/test/mb/expected/euc_kr.out +++ b/src/test/mb/expected/euc_kr.out @@ -1,87 +1,87 @@ -QUERY: drop table ͪߩѦ���; +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�� | +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) -QUERY: select * from ͪߩѦ��� where ���ڵ� = '��Z01��'; -��� |���ڵ�|���1a�� -----------------+--------+---------- -��ǻ�����α���|��Z01�� | +select * from ͪߩѦ��� where ���ڵ� = '��Z01��' + ��� | ���ڵ� | ���1a�� +------------------+----------+------------ + ��ǻ�����α��� | ��Z01�� | (1 row) -QUERY: select * from ͪߩѦ��� where ���ڵ� ~* '��z01��'; -��� |���ڵ�|���1a�� -----------------+--------+---------- -��ǻ�����α���|��Z01�� | +select * from ͪߩѦ��� where ���ڵ� ~* '��z01��' + ��� | ���ڵ� | ���1a�� +------------------+----------+------------ + ��ǻ�����α��� | ��Z01�� | (1 row) -QUERY: select * from ͪߩѦ��� where ���ڵ� like '_Z01_'; -��� |���ڵ�|���1a�� -----------------+--------+---------- -��ǻ�����α���|��Z01�� | +select * from ͪߩѦ��� where ���ڵ� like '_Z01_' + ��� | ���ڵ� | ���1a�� +------------------+----------+------------ + ��ǻ�����α��� | ��Z01�� | (1 row) -QUERY: select * from ͪߩѦ��� where ���ڵ� like '_Z%'; -��� |���ڵ�|���1a�� -----------------+--------+---------- -��ǻ�����α���|��Z01�� | +select * from ͪߩѦ��� where ���ڵ� like '_Z%' + ��� | ���ڵ� | ���1a�� +------------------+----------+------------ + ��ǻ�����α��� | ��Z01�� | (1 row) -QUERY: select * from ͪߩѦ��� where ��� ~ '��ǻ��[���]'; -��� |���ڵ�|���1a�� -----------------+--------+---------- -��ǻ�͵��÷���|ѦA01߾ | -��ǻ�ͱ��Ƚ� |��B10�� | +select * from ͪߩѦ��� where ��� ~ '��ǻ��[���]' + ��� | ���ڵ� | ���1a�� +------------------+----------+------------ + ��ǻ�͵��÷��� | ѦA01߾ | + ��ǻ�ͱ��Ƚ� | ��B10�� | (2 rows) -QUERY: select * from ͪߩѦ��� where ��� ~* '��ǻ��[���]'; -��� |���ڵ�|���1a�� -----------------+--------+---------- -��ǻ�͵��÷���|ѦA01߾ | -��ǻ�ͱ��Ƚ� |��B10�� | +select * from ͪߩѦ��� where ��� ~* '��ǻ��[���]' + ��� | ���ڵ� | ���1a�� +------------------+----------+------------ + ��ǻ�͵��÷��� | ѦA01߾ | + ��ǻ�ͱ��Ƚ� | ��B10�� | (2 rows) -QUERY: select *,character_length(���) from ͪߩѦ���; -��� |���ڵ�|���1a��|length -----------------+--------+----------+------ -��ǻ�͵��÷���|ѦA01߾ | | 8 -��ǻ�ͱ��Ƚ� |��B10�� | | 7 -��ǻ�����α���|��Z01�� | | 8 +select *,character_length(���) from ͪߩѦ��� + ��� | ���ڵ� | ���1a�� | length +------------------+----------+------------+-------- + ��ǻ�͵��÷��� | ѦA01߾ | | 8 + ��ǻ�ͱ��Ƚ� | ��B10�� | | 7 + ��ǻ�����α��� | ��Z01�� | | 8 (3 rows) -QUERY: select *,octet_length(���) from ͪߩѦ���; -��� |���ڵ�|���1a��|octet_length -----------------+--------+----------+------------ -��ǻ�͵��÷���|ѦA01߾ | | 16 -��ǻ�ͱ��Ƚ� |��B10�� | | 14 -��ǻ�����α���|��Z01�� | | 16 +select *,octet_length(���) from ͪߩѦ��� + ��� | ���ڵ� | ���1a�� | octet_length +------------------+----------+------------+-------------- + ��ǻ�͵��÷��� | ѦA01߾ | | 16 + ��ǻ�ͱ��Ƚ� | ��B10�� | | 14 + ��ǻ�����α��� | ��Z01�� | | 16 (3 rows) -QUERY: select *,position('��' in ���) from ͪߩѦ���; -��� |���ڵ�|���1a��|strpos -----------------+--------+----------+------ -��ǻ�͵��÷���|ѦA01߾ | | 4 -��ǻ�ͱ��Ƚ� |��B10�� | | 0 -��ǻ�����α���|��Z01�� | | 0 +select *,position('��' in ���) from ͪߩѦ��� + ��� | ���ڵ� | ���1a�� | strpos +------------------+----------+------------+-------- + ��ǻ�͵��÷��� | ѦA01߾ | | 4 + ��ǻ�ͱ��Ƚ� | ��B10�� | | 0 + ��ǻ�����α��� | ��Z01�� | | 0 (3 rows) -QUERY: select *,substring(��� from 3 for 4) from ͪߩѦ���; -��� |���ڵ�|���1a��|substr -----------------+--------+----------+-------- -��ǻ�͵��÷���|ѦA01߾ | |�͵��� -��ǻ�ͱ��Ƚ� |��B10�� | |�ͱ��� -��ǻ�����α���|��Z01�� | |�����α� +select *,substring(��� from 3 for 4) from ͪߩѦ��� + ��� | ���ڵ� | ���1a�� | substr +------------------+----------+------------+---------- + ��ǻ�͵��÷��� | ѦA01߾ | | �͵��� + ��ǻ�ͱ��Ƚ� | ��B10�� | | �ͱ��� + ��ǻ�����α��� | ��Z01�� | | �����α� (3 rows) diff --git a/src/test/mb/expected/euc_tw.out b/src/test/mb/expected/euc_tw.out index a7d2b940695..4e1e588295c 100644 --- a/src/test/mb/expected/euc_tw.out +++ b/src/test/mb/expected/euc_tw.out @@ -1,85 +1,85 @@ -QUERY: drop table ��ٸ����; +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Ħ +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) -QUERY: select * from ��ٸ���� where ���� = '��Z01Ħ'; -����ɱ|��Ƴ��� |���� -------+----------------+------- -����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ +select * from ��ٸ���� where ���� = '��Z01Ħ' + ����ɱ | ��Ƴ��� | ���� +--------+------------------+--------- + ���� | ӡ��ϴǹȴ����Ƴ | ��Z01Ħ (1 row) -QUERY: select * from ��ٸ���� where ���� ~* '��z01Ħ'; -����ɱ|��Ƴ��� |���� -------+----------------+------- -����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ +select * from ��ٸ���� where ���� ~* '��z01Ħ' + ����ɱ | ��Ƴ��� | ���� +--------+------------------+--------- + ���� | ӡ��ϴǹȴ����Ƴ | ��Z01Ħ (1 row) -QUERY: select * from ��ٸ���� where ���� like '_Z01_'; -����ɱ|��Ƴ��� |���� -------+----------------+------- -����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ +select * from ��ٸ���� where ���� like '_Z01_' + ����ɱ | ��Ƴ��� | ���� +--------+------------------+--------- + ���� | ӡ��ϴǹȴ����Ƴ | ��Z01Ħ (1 row) -QUERY: select * from ��ٸ���� where ���� like '_Z%'; -����ɱ|��Ƴ��� |���� -------+----------------+------- -����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ +select * from ��ٸ���� where ���� like '_Z%' + ����ɱ | ��Ƴ��� | ���� +--------+------------------+--------- + ���� | ӡ��ϴǹȴ����Ƴ | ��Z01Ħ (1 row) -QUERY: select * from ��ٸ���� where ��Ƴ��� ~ '����[��ش��]'; -����ɱ|��Ƴ���|���� -------+--------+------- -�����|������|ơA01�� +select * from ��ٸ���� where ��Ƴ��� ~ '����[��ش��]' + ����ɱ | ��Ƴ��� | ���� +--------+----------+--------- + ����� | ������ | ơA01�� (1 row) -QUERY: select * from ��ٸ���� where ��Ƴ��� ~* '����[��ش��]'; -����ɱ|��Ƴ���|���� -------+--------+------- -�����|������|ơA01�� +select * from ��ٸ���� where ��Ƴ��� ~* '����[��ش��]' + ����ɱ | ��Ƴ��� | ���� +--------+----------+--------- + ����� | ������ | ơA01�� (1 row) -QUERY: select *, character_length(����ɱ) from ��ٸ����; -����ɱ|��Ƴ��� |���� |length -------+----------------+-------+------ -�����|������ |ơA01��| 3 -������|����ȴ����Ƴ |��B10��| 3 -����|ӡ��ϴǹȴ����Ƴ|��Z01Ħ| 3 +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 +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 +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Ħ|ϴǹȴ����Ƴ +select *, substring(��Ƴ��� from 3 for 6 ) from ��ٸ���� + ����ɱ | ��Ƴ��� | ���� | substr +--------+------------------+---------+-------------- + ����� | ������ | ơA01�� | ���� + ������ | ����ȴ����Ƴ | ��B10�� | ȴ����Ƴ + ���� | ӡ��ϴǹȴ����Ƴ | ��Z01Ħ | ϴǹȴ����Ƴ (3 rows) diff --git a/src/test/mb/expected/mule_internal.out b/src/test/mb/expected/mule_internal.out index 09f5489ee5f..6df80473e6e 100644 --- a/src/test/mb/expected/mule_internal.out +++ b/src/test/mb/expected/mule_internal.out @@ -1,333 +1,333 @@ -QUERY: drop table ��ג�������ђ��; +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��� | +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) -QUERY: select * from ��ג�������ђ�� where �ʬ������������ = '���Z01���'; -��ђ�� |�ʬ������������|������1a������ -------------------------------------+---------------+-------------- -������Ԓ�咡������ג�풥���钥ޒ��|���Z01��� | +select * from ��ג�������ђ�� where �ʬ������������ = '���Z01���' + ��ђ�� | �ʬ������������ | ������1a������ +--------------------------------------+-----------------+---------------- + ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | (1 row) -QUERY: select * from ��ג�������ђ�� where �ʬ������������ ~* '���z01���'; -��ђ�� |�ʬ������������|������1a������ -------------------------------------+---------------+-------------- -������Ԓ�咡������ג�풥���钥ޒ��|���Z01��� | +select * from ��ג�������ђ�� where �ʬ������������ ~* '���z01���' + ��ђ�� | �ʬ������������ | ������1a������ +--------------------------------------+-----------------+---------------- + ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | (1 row) -QUERY: select * from ��ג�������ђ�� where �ʬ������������ like '_Z01_'; -��ђ�� |�ʬ������������|������1a������ -------------------------------------+---------------+-------------- -������Ԓ�咡������ג�풥���钥ޒ��|���Z01��� | +select * from ��ג�������ђ�� where �ʬ������������ like '_Z01_' + ��ђ�� | �ʬ������������ | ������1a������ +--------------------------------------+-----------------+---------------- + ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | (1 row) -QUERY: select * from ��ג�������ђ�� where �ʬ������������ like '_Z%'; -��ђ�� |�ʬ������������|������1a������ -------------------------------------+---------------+-------------- -������Ԓ�咡������ג�풥���钥ޒ��|���Z01��� | +select * from ��ג�������ђ�� where �ʬ������������ like '_Z%' + ��ђ�� | �ʬ������������ | ������1a������ +--------------------------------------+-----------------+---------------- + ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | (1 row) -QUERY: select * from ��ג�������ђ�� where ��ђ�� ~ '������Ԓ�咡����[��ǒ��]'; -��ђ�� |�ʬ������������|������1a������ ----------------------------------------+---------------+-------------- -������Ԓ�咡������ǒ�������ג�쒥� |���A01��� | -������Ԓ�咡���������钥Ւ����Ò�����|�ʬB10��� | +select * from ��ג�������ђ�� where ��ђ�� ~ '������Ԓ�咡����[��ǒ��]' + ��ђ�� | �ʬ������������ | ������1a������ +-----------------------------------------+-----------------+---------------- + ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | + ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | (2 rows) -QUERY: select * from ��ג�������ђ�� where ��ђ�� ~* '������Ԓ�咡����[��ǒ��]'; -��ђ�� |�ʬ������������|������1a������ ----------------------------------------+---------------+-------------- -������Ԓ�咡������ǒ�������ג�쒥� |���A01��� | -������Ԓ�咡���������钥Ւ����Ò�����|�ʬB10��� | +select * from ��ג�������ђ�� where ��ђ�� ~* '������Ԓ�咡����[��ǒ��]' + ��ђ�� | �ʬ������������ | ������1a������ +-----------------------------------------+-----------------+---------------- + ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | + ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | (2 rows) -QUERY: select *,character_length(��ђ��) from ��ג�������ђ��; -��ђ�� |�ʬ������������|������1a������|length ----------------------------------------+---------------+--------------+------ -������Ԓ�咡������ǒ�������ג�쒥� |���A01��� | | 12 -������Ԓ�咡���������钥Ւ����Ò�����|�ʬB10��� | | 13 -������Ԓ�咡������ג�풥���钥ޒ�� |���Z01��� | | 12 +select *,character_length(��ђ��) from ��ג�������ђ�� + ��ђ�� | �ʬ������������ | ������1a������ | length +-----------------------------------------+-----------------+----------------+-------- + ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | | 12 + ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | | 13 + ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | | 12 (3 rows) -QUERY: select *,octet_length(��ђ��) from ��ג�������ђ��; -��ђ�� |�ʬ������������|������1a������|octet_length ----------------------------------------+---------------+--------------+------------ -������Ԓ�咡������ǒ�������ג�쒥� |���A01��� | | 36 -������Ԓ�咡���������钥Ւ����Ò�����|�ʬB10��� | | 39 -������Ԓ�咡������ג�풥���钥ޒ�� |���Z01��� | | 36 +select *,octet_length(��ђ��) from ��ג�������ђ�� + ��ђ�� | �ʬ������������ | ������1a������ | octet_length +-----------------------------------------+-----------------+----------------+-------------- + ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | | 36 + ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | | 39 + ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | | 36 (3 rows) -QUERY: select *,position('���' in ��ђ��) from ��ג�������ђ��; -��ђ�� |�ʬ������������|������1a������|strpos ----------------------------------------+---------------+--------------+------ -������Ԓ�咡������ǒ�������ג�쒥� |���A01��� | | 7 -������Ԓ�咡���������钥Ւ����Ò�����|�ʬB10��� | | 0 -������Ԓ�咡������ג�풥���钥ޒ�� |���Z01��� | | 0 +select *,position('���' in ��ђ��) from ��ג�������ђ�� + ��ђ�� | �ʬ������������ | ������1a������ | strpos +-----------------------------------------+-----------------+----------------+-------- + ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | | 7 + ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | | 0 + ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | | 0 (3 rows) -QUERY: select *,substring(��ђ�� from 10 for 4) from ��ג�������ђ��; -��ђ�� |�ʬ������������|������1a������|substr ----------------------------------------+---------------+--------------+------------ -������Ԓ�咡������ǒ�������ג�쒥� |���A01��� | |��ג�쒥� -������Ԓ�咡���������钥Ւ����Ò�����|�ʬB10��� | |�����Ò����� -������Ԓ�咡������ג�풥���钥ޒ�� |���Z01��� | |��钥ޒ�� +select *,substring(��ђ�� from 10 for 4) from ��ג�������ђ�� + ��ђ�� | �ʬ������������ | ������1a������ | substr +-----------------------------------------+-----------------+----------------+-------------- + ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | | ��ג�쒥� + ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | | �����Ò����� + ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | | ��钥ޒ�� (3 rows) -QUERY: drop table ��Ƒ�㑻�������; +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���| +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) -QUERY: select * from ��Ƒ�㑻������� where ��֑����� = '���Z01���'; -������ |��֑�����|����ע1a ----------------+---------+-------- -����ԑ�̑��Ա|���Z01���| +select * from ��Ƒ�㑻������� where ��֑����� = '���Z01���' + ������ | ��֑����� | ����ע1a +-----------------+-----------+---------- + ����ԑ�̑��Ա | ���Z01��� | (1 row) -QUERY: select * from ��Ƒ�㑻������� where ��֑����� ~* '���z01���'; -������ |��֑�����|����ע1a ----------------+---------+-------- -����ԑ�̑��Ա|���Z01���| +select * from ��Ƒ�㑻������� where ��֑����� ~* '���z01���' + ������ | ��֑����� | ����ע1a +-----------------+-----------+---------- + ����ԑ�̑��Ա | ���Z01��� | (1 row) -QUERY: select * from ��Ƒ�㑻������� where ��֑����� like '_Z01_'; -������ |��֑�����|����ע1a ----------------+---------+-------- -����ԑ�̑��Ա|���Z01���| +select * from ��Ƒ�㑻������� where ��֑����� like '_Z01_' + ������ | ��֑����� | ����ע1a +-----------------+-----------+---------- + ����ԑ�̑��Ա | ���Z01��� | (1 row) -QUERY: select * from ��Ƒ�㑻������� where ��֑����� like '_Z%'; -������ |��֑�����|����ע1a ----------------+---------+-------- -����ԑ�̑��Ա|���Z01���| +select * from ��Ƒ�㑻������� where ��֑����� like '_Z%' + ������ | ��֑����� | ����ע1a +-----------------+-----------+---------- + ����ԑ�̑��Ա | ���Z01��� | (1 row) -QUERY: select * from ��Ƒ�㑻������� where ������ ~ '�����[��ԑͼ]'; -������ |��֑�����|����ע1a ----------------+---------+-------- -����ԑ�ԑʾ���|���A01���| -����ԑͼ��� |���B01���| +select * from ��Ƒ�㑻������� where ������ ~ '�����[��ԑͼ]' + ������ | ��֑����� | ����ע1a +-----------------+-----------+---------- + ����ԑ�ԑʾ��� | ���A01��� | + ����ԑͼ��� | ���B01��� | (2 rows) -QUERY: select * from ��Ƒ�㑻������� where ������ ~* '�����[��ԑͼ]'; -������ |��֑�����|����ע1a ----------------+---------+-------- -����ԑ�ԑʾ���|���A01���| -����ԑͼ��� |���B01���| +select * from ��Ƒ�㑻������� where ������ ~* '�����[��ԑͼ]' + ������ | ��֑����� | ����ע1a +-----------------+-----------+---------- + ����ԑ�ԑʾ��� | ���A01��� | + ����ԑͼ��� | ���B01��� | (2 rows) -QUERY: select *,character_length(������) from ��Ƒ�㑻�������; -������ |��֑�����|����ע1a|length ----------------+---------+--------+------ -����ԑ�ԑʾ���|���A01���| | 5 -����ԑͼ��� |���B01���| | 4 -����ԑ�̑��Ա|���Z01���| | 5 +select *,character_length(������) from ��Ƒ�㑻������� + ������ | ��֑����� | ����ע1a | length +-----------------+-----------+----------+-------- + ����ԑ�ԑʾ��� | ���A01��� | | 5 + ����ԑͼ��� | ���B01��� | | 4 + ����ԑ�̑��Ա | ���Z01��� | | 5 (3 rows) -QUERY: select *,octet_length(������) from ��Ƒ�㑻�������; -������ |��֑�����|����ע1a|octet_length ----------------+---------+--------+------------ -����ԑ�ԑʾ���|���A01���| | 15 -����ԑͼ��� |���B01���| | 12 -����ԑ�̑��Ա|���Z01���| | 15 +select *,octet_length(������) from ��Ƒ�㑻������� + ������ | ��֑����� | ����ע1a | octet_length +-----------------+-----------+----------+-------------- + ����ԑ�ԑʾ��� | ���A01��� | | 15 + ����ԑͼ��� | ���B01��� | | 12 + ����ԑ�̑��Ա | ���Z01��� | | 15 (3 rows) -QUERY: select *,position('���' in ������) from ��Ƒ�㑻�������; -������ |��֑�����|����ע1a|strpos ----------------+---------+--------+------ -����ԑ�ԑʾ���|���A01���| | 3 -����ԑͼ��� |���B01���| | 0 -����ԑ�̑��Ա|���Z01���| | 0 +select *,position('���' in ������) from ��Ƒ�㑻������� + ������ | ��֑����� | ����ע1a | strpos +-----------------+-----------+----------+-------- + ����ԑ�ԑʾ��� | ���A01��� | | 3 + ����ԑͼ��� | ���B01��� | | 0 + ����ԑ�̑��Ա | ���Z01��� | | 0 (3 rows) -QUERY: select *,substring(������ from 3 for 4) from ��Ƒ�㑻�������; -������ |��֑�����|����ע1a|substr ----------------+---------+--------+--------- -����ԑ�ԑʾ���|���A01���| |��ԑʾ��� -����ԑͼ��� |���B01���| |�ͼ��� -����ԑ�̑��Ա|���Z01���| |��̑��Ա +select *,substring(������ from 3 for 4) from ��Ƒ�㑻������� + ������ | ��֑����� | ����ע1a | substr +-----------------+-----------+----------+----------- + ����ԑ�ԑʾ��� | ���A01��� | | ��ԑʾ��� + ����ԑͼ��� | ���B01��� | | �ͼ��� + ����ԑ�̑��Ա | ���Z01��� | | ��̑��Ա (3 rows) -QUERY: drop table �ͪ�ߩ�Ѧ��듾�; +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��� | +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) -QUERY: select * from �ͪ�ߩ�Ѧ��듾� where ����ړ�� = '���Z01���'; -��듾� |����ړ��|����1a�� -------------------------+------------+-------------- -��ēǻ��͓����Γ�ד�����|���Z01��� | +select * from �ͪ�ߩ�Ѧ��듾� where ����ړ�� = '���Z01���' + ��듾� | ����ړ�� | ����1a�� +--------------------------+--------------+---------------- + ��ēǻ��͓����Γ�ד����� | ���Z01��� | (1 row) -QUERY: select * from �ͪ�ߩ�Ѧ��듾� where ����ړ�� ~* '���z01���'; -��듾� |����ړ��|����1a�� -------------------------+------------+-------------- -��ēǻ��͓����Γ�ד�����|���Z01��� | +select * from �ͪ�ߩ�Ѧ��듾� where ����ړ�� ~* '���z01���' + ��듾� | ����ړ�� | ����1a�� +--------------------------+--------------+---------------- + ��ēǻ��͓����Γ�ד����� | ���Z01��� | (1 row) -QUERY: select * from �ͪ�ߩ�Ѧ��듾� where ����ړ�� like '_Z01_'; -��듾� |����ړ��|����1a�� -------------------------+------------+-------------- -��ēǻ��͓����Γ�ד�����|���Z01��� | +select * from �ͪ�ߩ�Ѧ��듾� where ����ړ�� like '_Z01_' + ��듾� | ����ړ�� | ����1a�� +--------------------------+--------------+---------------- + ��ēǻ��͓����Γ�ד����� | ���Z01��� | (1 row) -QUERY: select * from �ͪ�ߩ�Ѧ��듾� where ����ړ�� like '_Z%'; -��듾� |����ړ��|����1a�� -------------------------+------------+-------------- -��ēǻ��͓����Γ�ד�����|���Z01��� | +select * from �ͪ�ߩ�Ѧ��듾� where ����ړ�� like '_Z%' + ��듾� | ����ړ�� | ����1a�� +--------------------------+--------------+---------------- + ��ēǻ��͓����Γ�ד����� | ���Z01��� | (1 row) -QUERY: select * from �ͪ�ߩ�Ѧ��듾� where ��듾� ~ '��ēǻ���[����]'; -��듾� |����ړ��|����1a�� -------------------------+------------+-------------- -��ēǻ��͓���Ó�����|�ѦA01�߾ | -��ēǻ��͓�ד����ȓ�� |���B10��� | +select * from �ͪ�ߩ�Ѧ��듾� where ��듾� ~ '��ēǻ���[����]' + ��듾� | ����ړ�� | ����1a�� +--------------------------+--------------+---------------- + ��ēǻ��͓���Ó����� | �ѦA01�߾ | + ��ēǻ��͓�ד����ȓ�� | ���B10��� | (2 rows) -QUERY: select * from �ͪ�ߩ�Ѧ��듾� where ��듾� ~* '��ēǻ���[����]'; -��듾� |����ړ��|����1a�� -------------------------+------------+-------------- -��ēǻ��͓���Ó�����|�ѦA01�߾ | -��ēǻ��͓�ד����ȓ�� |���B10��� | +select * from �ͪ�ߩ�Ѧ��듾� where ��듾� ~* '��ēǻ���[����]' + ��듾� | ����ړ�� | ����1a�� +--------------------------+--------------+---------------- + ��ēǻ��͓���Ó����� | �ѦA01�߾ | + ��ēǻ��͓�ד����ȓ�� | ���B10��� | (2 rows) -QUERY: select *,character_length(��듾�) from �ͪ�ߩ�Ѧ��듾�; -��듾� |����ړ��|����1a��|length -------------------------+------------+--------------+------ -��ēǻ��͓���Ó�����|�ѦA01�߾ | | 8 -��ēǻ��͓�ד����ȓ�� |���B10��� | | 7 -��ēǻ��͓����Γ�ד�����|���Z01��� | | 8 +select *,character_length(��듾�) from �ͪ�ߩ�Ѧ��듾� + ��듾� | ����ړ�� | ����1a�� | length +--------------------------+--------------+----------------+-------- + ��ēǻ��͓���Ó����� | �ѦA01�߾ | | 8 + ��ēǻ��͓�ד����ȓ�� | ���B10��� | | 7 + ��ēǻ��͓����Γ�ד����� | ���Z01��� | | 8 (3 rows) -QUERY: select *,octet_length(��듾�) from �ͪ�ߩ�Ѧ��듾�; -��듾� |����ړ��|����1a��|octet_length -------------------------+------------+--------------+------------ -��ēǻ��͓���Ó�����|�ѦA01�߾ | | 24 -��ēǻ��͓�ד����ȓ�� |���B10��� | | 21 -��ēǻ��͓����Γ�ד�����|���Z01��� | | 24 +select *,octet_length(��듾�) from �ͪ�ߩ�Ѧ��듾� + ��듾� | ����ړ�� | ����1a�� | octet_length +--------------------------+--------------+----------------+-------------- + ��ēǻ��͓���Ó����� | �ѦA01�߾ | | 24 + ��ēǻ��͓�ד����ȓ�� | ���B10��� | | 21 + ��ēǻ��͓����Γ�ד����� | ���Z01��� | | 24 (3 rows) -QUERY: select *,position('���' in ��듾�) from �ͪ�ߩ�Ѧ��듾�; -��듾� |����ړ��|����1a��|strpos -------------------------+------------+--------------+------ -��ēǻ��͓���Ó�����|�ѦA01�߾ | | 4 -��ēǻ��͓�ד����ȓ�� |���B10��� | | 0 -��ēǻ��͓����Γ�ד�����|���Z01��� | | 0 +select *,position('���' in ��듾�) from �ͪ�ߩ�Ѧ��듾� + ��듾� | ����ړ�� | ����1a�� | strpos +--------------------------+--------------+----------------+-------- + ��ēǻ��͓���Ó����� | �ѦA01�߾ | | 4 + ��ēǻ��͓�ד����ȓ�� | ���B10��� | | 0 + ��ēǻ��͓����Γ�ד����� | ���Z01��� | | 0 (3 rows) -QUERY: select *,substring(��듾� from 3 for 4) from �ͪ�ߩ�Ѧ��듾�; -��듾� |����ړ��|����1a��|substr -------------------------+------------+--------------+------------ -��ēǻ��͓���Ó�����|�ѦA01�߾ | |��͓���� -��ēǻ��͓�ד����ȓ�� |���B10��� | |��͓�ד����� -��ēǻ��͓����Γ�ד�����|���Z01��� | |��͓����Γ�� +select *,substring(��듾� from 3 for 4) from �ͪ�ߩ�Ѧ��듾� + ��듾� | ����ړ�� | ����1a�� | substr +--------------------------+--------------+----------------+-------------- + ��ēǻ��͓���Ó����� | �ѦA01�߾ | | ��͓���� + ��ēǻ��͓�ד����ȓ�� | ���B10��� | | ��͓�ד����� + ��ēǻ��͓����Γ�ד����� | ���Z01��� | | ��͓����Γ�� (3 rows) -QUERY: drop table test; +drop table test ERROR: Relation 'test' does not exist -QUERY: create table test (t text); -QUERY: insert into test values('ENGLISH'); -QUERY: insert into test values('FRAN��AIS'); -QUERY: insert into test values('ESPA��OL'); -QUERY: insert into test values('��SLENSKA'); -QUERY: insert into test values('ENGLISH FRAN��AIS ESPA��OL ��SLENSKA'); -QUERY: vacuum test; -QUERY: select * from test; -t ------------------------------------- -ENGLISH -FRAN��AIS -ESPA��OL -��SLENSKA -ENGLISH FRAN��AIS ESPA��OL ��SLENSKA +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) -QUERY: select * from test where t = 'ESPA��OL'; -t --------- -ESPA��OL +select * from test where t = 'ESPA��OL' + t +---------- + ESPA��OL (1 row) -QUERY: select * from test where t ~* 'espa��ol'; -t ------------------------------------- -ESPA��OL -ENGLISH FRAN��AIS ESPA��OL ��SLENSKA +select * from test where t ~* 'espa��ol' + t +-------------------------------------- + ESPA��OL + ENGLISH FRAN��AIS ESPA��OL ��SLENSKA (2 rows) -QUERY: select *,character_length(t) from test; -t |length -------------------------------------+------ -ENGLISH | 7 -FRAN��AIS | 8 -ESPA��OL | 7 -��SLENSKA | 8 -ENGLISH FRAN��AIS ESPA��OL ��SLENSKA| 33 +select *,character_length(t) from test + t | length +--------------------------------------+-------- + ENGLISH | 7 + FRAN��AIS | 8 + ESPA��OL | 7 + ��SLENSKA | 8 + ENGLISH FRAN��AIS ESPA��OL ��SLENSKA | 33 (5 rows) -QUERY: 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 +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) -QUERY: 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 +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) -QUERY: 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 +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/mb/expected/sjis.out b/src/test/mb/expected/sjis.out index 9dadee10e7f..0a63fc6321a 100644 --- a/src/test/mb/expected/sjis.out +++ b/src/test/mb/expected/sjis.out @@ -1,12 +1,12 @@ -drop table �v�Z�@�p��; -create table �v�Z�@�p�� (�p�� text, ���ރR�[�h varchar, ���l1A���� char(16)); -create index �v�Z�@�p��index1 on �v�Z�@�p�� using btree (�p��); -create index �v�Z�@�p��index2 on �v�Z�@�p�� using hash (���ރR�[�h); -insert into �v�Z�@�p�� values('�R���s���[�^�f�B�X�v���C','�@A01��'); -insert into �v�Z�@�p�� values('�R���s���[�^�O���t�B�b�N�X','��B10��'); -insert into �v�Z�@�p�� values('�R���s���[�^�v���O���}�[','�lZ01��'); -vacuum �v�Z�@�p��; -select * from �v�Z�@�p��; +drop table �v�Z�@�p�� +create table �v�Z�@�p�� (�p�� text, ���ރR�[�h varchar, ���l1A���� char(16)) +create index �v�Z�@�p��index1 on �v�Z�@�p�� using btree (�p��) +create index �v�Z�@�p��index2 on �v�Z�@�p�� using hash (���ރR�[�h) +insert into �v�Z�@�p�� values('�R���s���[�^�f�B�X�v���C','�@A01��') +insert into �v�Z�@�p�� values('�R���s���[�^�O���t�B�b�N�X','��B10��') +insert into �v�Z�@�p�� values('�R���s���[�^�v���O���}�[','�lZ01��') +vacuum �v�Z�@�p�� +select * from �v�Z�@�p�� �p�� | ���ރR�[�h | ���l1a���� ----------------------------+------------+------------ �R���s���[�^�f�B�X�v���C | �@A01�� | @@ -14,45 +14,45 @@ select * from �v�Z�@�p��; �R���s���[�^�v���O���}�[ | �lZ01�� | (3 rows) -select * from �v�Z�@�p�� where ���ރR�[�h = '�lZ01��'; +select * from �v�Z�@�p�� where ���ރR�[�h = '�lZ01��' �p�� | ���ރR�[�h | ���l1a���� --------------------------+------------+------------ �R���s���[�^�v���O���}�[ | �lZ01�� | (1 row) -select * from �v�Z�@�p�� where ���ރR�[�h ~* '�lz01��'; +select * from �v�Z�@�p�� where ���ރR�[�h ~* '�lz01��' �p�� | ���ރR�[�h | ���l1a���� --------------------------+------------+------------ �R���s���[�^�v���O���}�[ | �lZ01�� | (1 row) -select * from �v�Z�@�p�� where ���ރR�[�h like '_Z01_'; +select * from �v�Z�@�p�� where ���ރR�[�h like '_Z01_' �p�� | ���ރR�[�h | ���l1a���� --------------------------+------------+------------ �R���s���[�^�v���O���}�[ | �lZ01�� | (1 row) -select * from �v�Z�@�p�� where ���ރR�[�h like '_Z%'; +select * from �v�Z�@�p�� where ���ރR�[�h like '_Z%' �p�� | ���ރR�[�h | ���l1a���� --------------------------+------------+------------ �R���s���[�^�v���O���}�[ | �lZ01�� | (1 row) -select * from �v�Z�@�p�� where �p�� ~ '�R���s���[�^[�f�O]'; +select * from �v�Z�@�p�� where �p�� ~ '�R���s���[�^[�f�O]' �p�� | ���ރR�[�h | ���l1a���� ----------------------------+------------+------------ �R���s���[�^�f�B�X�v���C | �@A01�� | �R���s���[�^�O���t�B�b�N�X | ��B10�� | (2 rows) -select * from �v�Z�@�p�� where �p�� ~* '�R���s���[�^[�f�O]'; +select * from �v�Z�@�p�� where �p�� ~* '�R���s���[�^[�f�O]' �p�� | ���ރR�[�h | ���l1a���� ----------------------------+------------+------------ �R���s���[�^�f�B�X�v���C | �@A01�� | �R���s���[�^�O���t�B�b�N�X | ��B10�� | (2 rows) -select *,character_length(�p��) from �v�Z�@�p��; +select *,character_length(�p��) from �v�Z�@�p�� �p�� | ���ރR�[�h | ���l1a���� | length ----------------------------+------------+------------+-------- �R���s���[�^�f�B�X�v���C | �@A01�� | | 12 @@ -60,7 +60,7 @@ select *,character_length(�p��) from �v�Z�@�p��; �R���s���[�^�v���O���}�[ | �lZ01�� | | 12 (3 rows) -select *,octet_length(�p��) from �v�Z�@�p��; +select *,octet_length(�p��) from �v�Z�@�p�� �p�� | ���ރR�[�h | ���l1a���� | octet_length ----------------------------+------------+------------+-------------- �R���s���[�^�f�B�X�v���C | �@A01�� | | 24 @@ -68,7 +68,7 @@ select *,octet_length(�p��) from �v�Z�@�p��; �R���s���[�^�v���O���}�[ | �lZ01�� | | 24 (3 rows) -select *,position('�f' in �p��) from �v�Z�@�p��; +select *,position('�f' in �p��) from �v�Z�@�p�� �p�� | ���ރR�[�h | ���l1a���� | strpos ----------------------------+------------+------------+-------- �R���s���[�^�f�B�X�v���C | �@A01�� | | 7 @@ -76,7 +76,7 @@ select *,position('�f' in �p��) from �v�Z�@�p��; �R���s���[�^�v���O���}�[ | �lZ01�� | | 0 (3 rows) -select *,substring(�p�� from 10 for 4) from �v�Z�@�p��; +select *,substring(�p�� from 10 for 4) from �v�Z�@�p�� �p�� | ���ރR�[�h | ���l1a���� | substr ----------------------------+------------+------------+---------- �R���s���[�^�f�B�X�v���C | �@A01�� | | �v���C @@ -84,7 +84,7 @@ select *,substring(�p�� from 10 for 4) from �v�Z�@�p��; �R���s���[�^�v���O���}�[ | �lZ01�� | | ���}�[ (3 rows) -copy �v�Z�@�p�� to stdout; +copy �v�Z�@�p�� to stdout �R���s���[�^�f�B�X�v���C �@A01�� \N �R���s���[�^�O���t�B�b�N�X ��B10�� \N �R���s���[�^�v���O���}�[ �lZ01�� \N diff --git a/src/test/mb/expected/unicode.out b/src/test/mb/expected/unicode.out index 4f619badd7b..45f565ca67a 100644 --- a/src/test/mb/expected/unicode.out +++ b/src/test/mb/expected/unicode.out @@ -1,87 +1,87 @@ -QUERY: drop table 計算機用語; +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下 | +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) -QUERY: select * from 計算機用語 where 分類コード = '人Z01下'; -用語 |分類コード|備考1aだよ -------------------------------------+---------------+-------------- -コンピュータプログラマー|人Z01下 | +select * from 計算機用語 where 分類コード = '人Z01下' + 用語 | 分類コード | 備考1aだよ +--------------------------------------+-----------------+---------------- + コンピュータプログラマー | 人Z01下 | (1 row) -QUERY: select * from 計算機用語 where 分類コード ~* '人z01下'; -用語 |分類コード|備考1aだよ -------------------------------------+---------------+-------------- -コンピュータプログラマー|人Z01下 | +select * from 計算機用語 where 分類コード ~* '人z01下' + 用語 | 分類コード | 備考1aだよ +--------------------------------------+-----------------+---------------- + コンピュータプログラマー | 人Z01下 | (1 row) -QUERY: select * from 計算機用語 where 分類コード like '_Z01_'; -用語 |分類コード|備考1aだよ -------------------------------------+---------------+-------------- -コンピュータプログラマー|人Z01下 | +select * from 計算機用語 where 分類コード like '_Z01_' + 用語 | 分類コード | 備考1aだよ +--------------------------------------+-----------------+---------------- + コンピュータプログラマー | 人Z01下 | (1 row) -QUERY: select * from 計算機用語 where 分類コード like '_Z%'; -用語 |分類コード|備考1aだよ -------------------------------------+---------------+-------------- -コンピュータプログラマー|人Z01下 | +select * from 計算機用語 where 分類コード like '_Z%' + 用語 | 分類コード | 備考1aだよ +--------------------------------------+-----------------+---------------- + コンピュータプログラマー | 人Z01下 | (1 row) -QUERY: select * from 計算機用語 where 用語 ~ 'コンピュータ[デグ]'; -用語 |分類コード|備考1aだよ ----------------------------------------+---------------+-------------- -コンピュータディスプレイ |機A01上 | -コンピュータグラフィックス|分B10中 | +select * from 計算機用語 where 用語 ~ 'コンピュータ[デグ]' + 用語 | 分類コード | 備考1aだよ +-----------------------------------------+-----------------+---------------- + コンピュータディスプレイ | 機A01上 | + コンピュータグラフィックス | 分B10中 | (2 rows) -QUERY: select * from 計算機用語 where 用語 ~* 'コンピュータ[デグ]'; -用語 |分類コード|備考1aだよ ----------------------------------------+---------------+-------------- -コンピュータディスプレイ |機A01上 | -コンピュータグラフィックス|分B10中 | +select * from 計算機用語 where 用語 ~* 'コンピュータ[デグ]' + 用語 | 分類コード | 備考1aだよ +-----------------------------------------+-----------------+---------------- + コンピュータディスプレイ | 機A01上 | + コンピュータグラフィックス | 分B10中 | (2 rows) -QUERY: select *,character_length(用語) from 計算機用語; -用語 |分類コード|備考1aだよ|length ----------------------------------------+---------------+--------------+------ -コンピュータディスプレイ |機A01上 | | 12 -コンピュータグラフィックス|分B10中 | | 13 -コンピュータプログラマー |人Z01下 | | 12 +select *,character_length(用語) from 計算機用語 + 用語 | 分類コード | 備考1aだよ | length +-----------------------------------------+-----------------+----------------+-------- + コンピュータディスプレイ | 機A01上 | | 12 + コンピュータグラフィックス | 分B10中 | | 13 + コンピュータプログラマー | 人Z01下 | | 12 (3 rows) -QUERY: select *,octet_length(用語) from 計算機用語; -用語 |分類コード|備考1aだよ|octet_length ----------------------------------------+---------------+--------------+------------ -コンピュータディスプレイ |機A01上 | | 36 -コンピュータグラフィックス|分B10中 | | 39 -コンピュータプログラマー |人Z01下 | | 36 +select *,octet_length(用語) from 計算機用語 + 用語 | 分類コード | 備考1aだよ | octet_length +-----------------------------------------+-----------------+----------------+-------------- + コンピュータディスプレイ | 機A01上 | | 36 + コンピュータグラフィックス | 分B10中 | | 39 + コンピュータプログラマー | 人Z01下 | | 36 (3 rows) -QUERY: select *,position('デ' in 用語) from 計算機用語; -用語 |分類コード|備考1aだよ|strpos ----------------------------------------+---------------+--------------+------ -コンピュータディスプレイ |機A01上 | | 7 -コンピュータグラフィックス|分B10中 | | 0 -コンピュータプログラマー |人Z01下 | | 0 +select *,position('デ' in 用語) from 計算機用語 + 用語 | 分類コード | 備考1aだよ | strpos +-----------------------------------------+-----------------+----------------+-------- + コンピュータディスプレイ | 機A01上 | | 7 + コンピュータグラフィックス | 分B10中 | | 0 + コンピュータプログラマー | 人Z01下 | | 0 (3 rows) -QUERY: select *,substring(用語 from 10 for 4) from 計算機用語; -用語 |分類コード|備考1aだよ|substr ----------------------------------------+---------------+--------------+------------ -コンピュータディスプレイ |機A01上 | |プレイ -コンピュータグラフィックス|分B10中 | |ィックス -コンピュータプログラマー |人Z01下 | |ラマー +select *,substring(用語 from 10 for 4) from 計算機用語 + 用語 | 分類コード | 備考1aだよ | substr +-----------------------------------------+-----------------+----------------+-------------- + コンピュータディスプレイ | 機A01上 | | プレイ + コンピュータグラフィックス | 分B10中 | | ィックス + コンピュータプログラマー | 人Z01下 | | ラマー (3 rows) |