summaryrefslogtreecommitdiffstats
path: root/src/test/mb/expected/euc_jp.out
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:17:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:17:33 +0000
commit5e45211a64149b3c659b90ff2de6fa982a5a93ed (patch)
tree739caf8c461053357daa9f162bef34516c7bf452 /src/test/mb/expected/euc_jp.out
parentInitial commit. (diff)
downloadpostgresql-15-5e45211a64149b3c659b90ff2de6fa982a5a93ed.tar.xz
postgresql-15-5e45211a64149b3c659b90ff2de6fa982a5a93ed.zip
Adding upstream version 15.5.upstream/15.5
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/mb/expected/euc_jp.out')
-rw-r--r--src/test/mb/expected/euc_jp.out87
1 files changed, 87 insertions, 0 deletions
diff --git a/src/test/mb/expected/euc_jp.out b/src/test/mb/expected/euc_jp.out
new file mode 100644
index 0000000..15f83e0
--- /dev/null
+++ b/src/test/mb/expected/euc_jp.out
@@ -0,0 +1,87 @@
+drop table 計算機用語;
+ERROR: table "計算機用語" 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だよ | character_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だよ | position
+----------------------------+------------+------------+----------
+ コンピュータディスプレイ | 機A01上 | | 7
+ コンピュータグラフィックス | 分B10中 | | 0
+ コンピュータプログラマー | 人Z01下 | | 0
+(3 rows)
+
+select *,substring(用語 from 10 for 4) from 計算機用語;
+ 用語 | 分類コード | 備考1aだよ | substring
+----------------------------+------------+------------+-----------
+ コンピュータディスプレイ | 機A01上 | | プレイ
+ コンピュータグラフィックス | 分B10中 | | ィックス
+ コンピュータプログラマー | 人Z01下 | | ラマー
+(3 rows)
+