Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
805e0c45
Commit
805e0c45
authored
Mar 16, 2000
by
Tatsuo Ishii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for char_length() changes.
parent
d14c8aab
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
263 additions
and
263 deletions
+263
-263
src/test/mb/expected/big5.out
src/test/mb/expected/big5.out
+24
-24
src/test/mb/expected/euc_cn.out
src/test/mb/expected/euc_cn.out
+24
-24
src/test/mb/expected/euc_jp.out
src/test/mb/expected/euc_jp.out
+24
-24
src/test/mb/expected/euc_kr.out
src/test/mb/expected/euc_kr.out
+24
-24
src/test/mb/expected/euc_tw.out
src/test/mb/expected/euc_tw.out
+24
-24
src/test/mb/expected/mule_internal.out
src/test/mb/expected/mule_internal.out
+94
-94
src/test/mb/expected/sjis.out
src/test/mb/expected/sjis.out
+25
-25
src/test/mb/expected/unicode.out
src/test/mb/expected/unicode.out
+24
-24
No files found.
src/test/mb/expected/big5.out
View file @
805e0c45
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 廠商資料
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 廠商資料
;
行業別 | 公司抬頭 | 地址
--------+------------------+---------
電腦業 | 達達科技 | 北A01仁
...
...
@@ -14,51 +14,51 @@ select * from
餐飲業 | 美味股份有限公司 | 高Z01九
(3 rows)
select * from 廠商資料 where 地址 = '高Z01九'
select * from 廠商資料 where 地址 = '高Z01九'
;
行業別 | 公司抬頭 | 地址
--------+------------------+---------
餐飲業 | 美味股份有限公司 | 高Z01九
(1 row)
select * from 廠商資料 where 地址 ~* '高z01九'
select * from 廠商資料 where 地址 ~* '高z01九'
;
行業別 | 公司抬頭 | 地址
--------+------------------+---------
餐飲業 | 美味股份有限公司 | 高Z01九
(1 row)
select * from 廠商資料 where 地址 like '_Z01_'
select * from 廠商資料 where 地址 like '_Z01_'
;
行業別 | 公司抬頭 | 地址
--------+------------------+---------
餐飲業 | 美味股份有限公司 | 高Z01九
(1 row)
select * from 廠商資料 where 地址 like '_Z%'
select * from 廠商資料 where 地址 like '_Z%'
;
行業別 | 公司抬頭 | 地址
--------+------------------+---------
餐飲業 | 美味股份有限公司 | 高Z01九
(1 row)
select * from 廠商資料 where 公司抬頭 ~ '達達科[寄記技]'
select * from 廠商資料 where 公司抬頭 ~ '達達科[寄記技]'
;
行業別 | 公司抬頭 | 地址
--------+----------+---------
電腦業 | 達達科技 | 北A01仁
(1 row)
select * from 廠商資料 where 公司抬頭 ~* '達達科[寄記技]'
select * from 廠商資料 where 公司抬頭 ~* '達達科[寄記技]'
;
行業別 | 公司抬頭 | 地址
--------+----------+---------
電腦業 | 達達科技 | 北A01仁
(1 row)
select *, character_length(行業別) from 廠商資料
行業別 | 公司抬頭 | 地址 | length
--------+------------------+---------+--------
電腦業 | 達達科技 | 北A01仁 | 3
製造業 | 財源有限公司 | 中B10中 | 3
餐飲業 | 美味股份有限公司 | 高Z01九 | 3
select *, character_length(行業別) from 廠商資料
;
行業別 | 公司抬頭 | 地址 |
char_
length
--------+------------------+---------+--------
-----
電腦業 | 達達科技 | 北A01仁 |
3
製造業 | 財源有限公司 | 中B10中 |
3
餐飲業 | 美味股份有限公司 | 高Z01九 |
3
(3 rows)
select *, octet_length(行業別) from 廠商資料
select *, octet_length(行業別) from 廠商資料
;
行業別 | 公司抬頭 | 地址 | octet_length
--------+------------------+---------+--------------
電腦業 | 達達科技 | 北A01仁 | 6
...
...
@@ -66,7 +66,7 @@ select *, octet_length(
餐飲業 | 美味股份有限公司 | 高Z01九 | 6
(3 rows)
select *, position('有限' in 公司抬頭) from 廠商資料
select *, position('有限' in 公司抬頭) from 廠商資料
;
行業別 | 公司抬頭 | 地址 | strpos
--------+------------------+---------+--------
電腦業 | 達達科技 | 北A01仁 | 0
...
...
@@ -74,7 +74,7 @@ select *, position('
餐飲業 | 美味股份有限公司 | 高Z01九 | 5
(3 rows)
select *, substring(公司抬頭 from 3 for 6 ) from 廠商資料
select *, substring(公司抬頭 from 3 for 6 ) from 廠商資料
;
行業別 | 公司抬頭 | 地址 | substr
--------+------------------+---------+--------------
電腦業 | 達達科技 | 北A01仁 | 科技
...
...
src/test/mb/expected/euc_cn.out
View file @
805e0c45
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 btree(分类号)
insert into 计算机术语 values('电脑显示屏','机A01上')
insert into 计算机术语 values('电脑图形','分B01中')
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 btree(分类号)
;
insert into 计算机术语 values('电脑显示屏','机A01上')
;
insert into 计算机术语 values('电脑图形','分B01中')
;
insert into 计算机术语 values('电脑程序员','人Z01下')
;
vacuum 计算机术语
;
select * from 计算机术语
;
术语 | 分类号 | 备注1a
------------+---------+--------
电脑显示屏 | 机A01上 |
...
...
@@ -15,53 +15,53 @@ 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上 |
电脑图形 | 分B01中 |
(2 rows)
select * from 计算机术语 where 术语 ~* '电脑[显图]'
select * from 计算机术语 where 术语 ~* '电脑[显图]'
;
术语 | 分类号 | 备注1a
------------+---------+--------
电脑显示屏 | 机A01上 |
电脑图形 | 分B01中 |
(2 rows)
select *,character_length(术语) from 计算机术语
术语 | 分类号 | 备注1a | length
------------+---------+--------+--------
电脑显示屏 | 机A01上 | | 5
电脑图形 | 分B01中 | | 4
电脑程序员 | 人Z01下 | | 5
select *,character_length(术语) from 计算机术语
;
术语 | 分类号 | 备注1a |
char_
length
------------+---------+--------+--------
-----
电脑显示屏 | 机A01上 | |
5
电脑图形 | 分B01中 | |
4
电脑程序员 | 人Z01下 | |
5
(3 rows)
select *,octet_length(术语) from 计算机术语
select *,octet_length(术语) from 计算机术语
;
术语 | 分类号 | 备注1a | octet_length
------------+---------+--------+--------------
电脑显示屏 | 机A01上 | | 10
...
...
@@ -69,7 +69,7 @@ select *,octet_length(
电脑程序员 | 人Z01下 | | 10
(3 rows)
select *,position('显' in 术语) from 计算机术语
select *,position('显' in 术语) from 计算机术语
;
术语 | 分类号 | 备注1a | strpos
------------+---------+--------+--------
电脑显示屏 | 机A01上 | | 3
...
...
@@ -77,7 +77,7 @@ select *,position('
电脑程序员 | 人Z01下 | | 0
(3 rows)
select *,substring(术语 from 3 for 4) from 计算机术语
select *,substring(术语 from 3 for 4) from 计算机术语
;
术语 | 分类号 | 备注1a | substr
------------+---------+--------+--------
电脑显示屏 | 机A01上 | | 显示屏
...
...
src/test/mb/expected/euc_jp.out
View file @
805e0c45
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,53 +15,53 @@ 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 計算機用語
用語 | 分類コード | 備考1aだよ | length
----------------------------+------------+------------+--------
コンピュータディスプレイ | 機A01上 | | 12
コンピュータグラフィックス | 分B10中 | | 13
コンピュータプログラマー | 人Z01下 | | 12
select *,character_length(用語) from 計算機用語
;
用語 | 分類コード | 備考1aだよ |
char_
length
----------------------------+------------+------------+--------
-----
コンピュータディスプレイ | 機A01上 | |
12
コンピュータグラフィックス | 分B10中 | |
13
コンピュータプログラマー | 人Z01下 | |
12
(3 rows)
select *,octet_length(用語) from 計算機用語
select *,octet_length(用語) from 計算機用語
;
用語 | 分類コード | 備考1aだよ | octet_length
----------------------------+------------+------------+--------------
コンピュータディスプレイ | 機A01上 | | 24
...
...
@@ -69,7 +69,7 @@ select *,octet_length(
コンピュータプログラマー | 人Z01下 | | 24
(3 rows)
select *,position('デ' in 用語) from 計算機用語
select *,position('デ' in 用語) from 計算機用語
;
用語 | 分類コード | 備考1aだよ | strpos
----------------------------+------------+------------+--------
コンピュータディスプレイ | 機A01上 | | 7
...
...
@@ -77,7 +77,7 @@ select *,position('
コンピュータプログラマー | 人Z01下 | | 0
(3 rows)
select *,substring(用語 from 10 for 4) from 計算機用語
select *,substring(用語 from 10 for 4) from 計算機用語
;
用語 | 分類コード | 備考1aだよ | substr
----------------------------+------------+------------+----------
コンピュータディスプレイ | 機A01上 | | プレイ
...
...
src/test/mb/expected/euc_kr.out
View file @
805e0c45
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,53 +15,53 @@ 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 計算機용어
용어 | 分類코드 | 비고1a라구 | length
------------------+----------+------------+--------
컴퓨터디스플레이 | 機A01上 | | 8
컴퓨터그래픽스 | 分B10中 | | 7
컴퓨터프로그래머 | 人Z01下 | | 8
select *,character_length(용어) from 計算機용어
;
용어 | 分類코드 | 비고1a라구 |
char_
length
------------------+----------+------------+--------
-----
컴퓨터디스플레이 | 機A01上 | |
8
컴퓨터그래픽스 | 分B10中 | |
7
컴퓨터프로그래머 | 人Z01下 | |
8
(3 rows)
select *,octet_length(용어) from 計算機용어
select *,octet_length(용어) from 計算機용어
;
용어 | 分類코드 | 비고1a라구 | octet_length
------------------+----------+------------+--------------
컴퓨터디스플레이 | 機A01上 | | 16
...
...
@@ -69,7 +69,7 @@ select *,octet_length(
컴퓨터프로그래머 | 人Z01下 | | 16
(3 rows)
select *,position('디' in 용어) from 計算機용어
select *,position('디' in 용어) from 計算機용어
;
용어 | 分類코드 | 비고1a라구 | strpos
------------------+----------+------------+--------
컴퓨터디스플레이 | 機A01上 | | 4
...
...
@@ -77,7 +77,7 @@ select *,position('
컴퓨터프로그래머 | 人Z01下 | | 0
(3 rows)
select *,substring(용어 from 3 for 4) from 計算機용어
select *,substring(용어 from 3 for 4) from 計算機용어
;
용어 | 分類코드 | 비고1a라구 | substr
------------------+----------+------------+----------
컴퓨터디스플레이 | 機A01上 | | 터디스플
...
...
src/test/mb/expected/euc_tw.out
View file @
805e0c45
drop table 燹俑骜砧
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 燹俑骜砧
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念
...
...
@@ -15,51 +15,51 @@ select * from
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩
(3 rows)
select * from 燹俑骜砧 where 氢蛇 = '仨Z01摩'
select * from 燹俑骜砧 where 氢蛇 = '仨Z01摩'
;
如淦杀 | 狞瞥婉螭 | 氢蛇
--------+------------------+---------
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩
(1 row)
select * from 燹俑骜砧 where 氢蛇 ~* '仨z01摩'
select * from 燹俑骜砧 where 氢蛇 ~* '仨z01摩'
;
如淦杀 | 狞瞥婉螭 | 氢蛇
--------+------------------+---------
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩
(1 row)
select * from 燹俑骜砧 where 氢蛇 like '_Z01_'
select * from 燹俑骜砧 where 氢蛇 like '_Z01_'
;
如淦杀 | 狞瞥婉螭 | 氢蛇
--------+------------------+---------
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩
(1 row)
select * from 燹俑骜砧 where 氢蛇 like '_Z%'
select * from 燹俑骜砧 where 氢蛇 like '_Z%'
;
如淦杀 | 狞瞥婉螭 | 氢蛇
--------+------------------+---------
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩
(1 row)
select * from 燹俑骜砧 where 狞瞥婉螭 ~ '绠绠绎[凫卮世]'
select * from 燹俑骜砧 where 狞瞥婉螭 ~ '绠绠绎[凫卮世]'
;
如淦杀 | 狞瞥婉螭 | 氢蛇
--------+----------+---------
缳妾淦 | 绠绠绎世 | 啤A01念
(1 row)
select * from 燹俑骜砧 where 狞瞥婉螭 ~* '绠绠绎[凫卮世]'
select * from 燹俑骜砧 where 狞瞥婉螭 ~* '绠绠绎[凫卮世]'
;
如淦杀 | 狞瞥婉螭 | 氢蛇
--------+----------+---------
缳妾淦 | 绠绠绎世 | 啤A01念
(1 row)
select *, character_length(如淦杀) from 燹俑骜砧
如淦杀 | 狞瞥婉螭 | 氢蛇 | length
--------+------------------+---------+--------
缳妾淦 | 绠绠绎世 | 啤A01念 | 3
犒葸淦 | 芈溷却宇狞瞥 | 你B10你 | 3
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 | 3
select *, character_length(如淦杀) from 燹俑骜砧
;
如淦杀 | 狞瞥婉螭 | 氢蛇 |
char_
length
--------+------------------+---------+--------
-----
缳妾淦 | 绠绠绎世 | 啤A01念 |
3
犒葸淦 | 芈溷却宇狞瞥 | 你B10你 |
3
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 |
3
(3 rows)
select *, octet_length(如淦杀) from 燹俑骜砧
select *, octet_length(如淦杀) from 燹俑骜砧
;
如淦杀 | 狞瞥婉螭 | 氢蛇 | octet_length
--------+------------------+---------+--------------
缳妾淦 | 绠绠绎世 | 啤A01念 | 6
...
...
@@ -67,7 +67,7 @@ select *, octet_length(
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 | 6
(3 rows)
select *, position('却宇' in 狞瞥婉螭) from 燹俑骜砧
select *, position('却宇' in 狞瞥婉螭) from 燹俑骜砧
;
如淦杀 | 狞瞥婉螭 | 氢蛇 | strpos
--------+------------------+---------+--------
缳妾淦 | 绠绠绎世 | 啤A01念 | 0
...
...
@@ -75,7 +75,7 @@ select *, position('却
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 | 5
(3 rows)
select *, substring(狞瞥婉螭 from 3 for 6 ) from 燹俑骜砧
select *, substring(狞瞥婉螭 from 3 for 6 ) from 燹俑骜砧
;
如淦杀 | 狞瞥婉螭 | 氢蛇 | substr
--------+------------------+---------+--------------
缳妾淦 | 绠绠绎世 | 啤A01念 | 绎世
...
...
src/test/mb/expected/mule_internal.out
View file @
805e0c45
This diff is collapsed.
Click to expand it.
src/test/mb/expected/sjis.out
View file @
805e0c45
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 計算機用語
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 計算機用語
;
用語 | 分類コード | 備考1aだよ
----------------------------+------------+------------
コンピュータディスプレイ | 機A01上 |
...
...
@@ -14,53 +14,53 @@ 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 計算機用語
用語 | 分類コード | 備考1aだよ | length
----------------------------+------------+------------+--------
コンピュータディスプレイ | 機A01上 | | 12
コンピュータグラフィックス | 分B10中 | | 13
コンピュータプログラマー | 人Z01下 | | 12
select *,character_length(用語) from 計算機用語
;
用語 | 分類コード | 備考1aだよ |
char_
length
----------------------------+------------+------------+--------
-----
コンピュータディスプレイ | 機A01上 | |
12
コンピュータグラフィックス | 分B10中 | |
13
コンピュータプログラマー | 人Z01下 | |
12
(3 rows)
select *,octet_length(用語) from 計算機用語
select *,octet_length(用語) from 計算機用語
;
用語 | 分類コード | 備考1aだよ | octet_length
----------------------------+------------+------------+--------------
コンピュータディスプレイ | 機A01上 | | 24
...
...
@@ -68,7 +68,7 @@ select *,octet_length(
コンピュータプログラマー | 人Z01下 | | 24
(3 rows)
select *,position('デ' in 用語) from 計算機用語
select *,position('デ' in 用語) from 計算機用語
;
用語 | 分類コード | 備考1aだよ | strpos
----------------------------+------------+------------+--------
コンピュータディスプレイ | 機A01上 | | 7
...
...
@@ -76,7 +76,7 @@ select *,position('
コンピュータプログラマー | 人Z01下 | | 0
(3 rows)
select *,substring(用語 from 10 for 4) from 計算機用語
select *,substring(用語 from 10 for 4) from 計算機用語
;
用語 | 分類コード | 備考1aだよ | substr
----------------------------+------------+------------+----------
コンピュータディスプレイ | 機A01上 | | プレイ
...
...
@@ -84,7 +84,7 @@ select *,substring(
コンピュータプログラマー | 人Z01下 | | ラマー
(3 rows)
copy 計算機用語 to stdout
copy 計算機用語 to stdout
;
コンピュータディスプレイ 機A01上 \N
コンピュータグラフィックス 分B10中 \N
コンピュータプログラマー 人Z01下 \N
src/test/mb/expected/unicode.out
View file @
805e0c45
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,53 +15,53 @@ 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 計算機用語
用語 | 分類コード | 備考1aだよ | length
-----------------------------------------+-----------------+----------------+--------
コンピュータディスプレイ | 機A01上 | | 12
コンピュータグラフィックス | 分B10中 | | 13
コンピュータプログラマー | 人Z01下 | | 12
select *,character_length(用語) from 計算機用語
;
用語 | 分類コード | 備考1aだよ |
char_
length
-----------------------------------------+-----------------+----------------+--------
-----
コンピュータディスプレイ | 機A01上 | |
12
コンピュータグラフィックス | 分B10中 | |
13
コンピュータプログラマー | 人Z01下 | |
12
(3 rows)
select *,octet_length(用語) from 計算機用語
select *,octet_length(用語) from 計算機用語
;
用語 | 分類コード | 備考1aだよ | octet_length
-----------------------------------------+-----------------+----------------+--------------
コンピュータディスプレイ | 機A01上 | | 36
...
...
@@ -69,7 +69,7 @@ select *,octet_length(用語) from 計算機用語
コンピュータプログラマー | 人Z01下 | | 36
(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上 | | プレイ
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment