Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
ce3d0870
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ce3d0870
编写于
8月 04, 2002
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
This patch adds support for inet[] arrays to the /contrib/array module.
Neil Conway
上级
0b15c252
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
102 addition
and
28 deletion
+102
-28
contrib/array/array_iterator.c
contrib/array/array_iterator.c
+35
-1
contrib/array/array_iterator.h
contrib/array/array_iterator.h
+5
-0
contrib/array/array_iterator.sql.in
contrib/array/array_iterator.sql.in
+62
-27
未找到文件。
contrib/array/array_iterator.c
浏览文件 @
ce3d0870
...
...
@@ -361,7 +361,41 @@ array_all_oidne(ArrayType *array, Oid value)
array
,
(
Datum
)
value
);
}
/* end of file */
int32
array_ineteq
(
ArrayType
*
array
,
Oid
value
)
{
return
array_iterator
((
Oid
)
869
,
/* inet */
(
Oid
)
920
,
/* network_eq */
0
,
/* logical or */
array
,
(
Datum
)
value
);
}
int32
array_all_ineteq
(
ArrayType
*
array
,
Oid
value
)
{
return
array_iterator
((
Oid
)
869
,
/* inet */
(
Oid
)
920
,
/* network_eq */
1
,
/* logical and */
array
,
(
Datum
)
value
);
}
int32
array_inetne
(
ArrayType
*
array
,
Oid
value
)
{
return
array_iterator
((
Oid
)
869
,
/* inet */
(
Oid
)
925
,
/* network_ne */
0
,
/* logical and */
array
,
(
Datum
)
value
);
}
int32
array_all_inetne
(
ArrayType
*
array
,
Oid
value
)
{
return
array_iterator
((
Oid
)
869
,
/* inet */
(
Oid
)
925
,
/* network_ne */
1
,
/* logical and */
array
,
(
Datum
)
value
);
}
/*
* Local Variables:
...
...
contrib/array/array_iterator.h
浏览文件 @
ce3d0870
...
...
@@ -34,6 +34,11 @@ int32 array_all_int4le(ArrayType *array, int4 value);
int32
array_oideq
(
ArrayType
*
array
,
Oid
value
);
int32
array_all_oidne
(
ArrayType
*
array
,
Oid
value
);
int32
array_ineteq
(
ArrayType
*
array
,
Oid
value
);
int32
array_all_ineteq
(
ArrayType
*
array
,
Oid
value
);
int32
array_inetne
(
ArrayType
*
array
,
Oid
value
);
int32
array_all_inetne
(
ArrayType
*
array
,
Oid
value
);
#endif
/*
...
...
contrib/array/array_iterator.sql.in
浏览文件 @
ce3d0870
...
...
@@ -2,19 +2,19 @@
-- define the array operators *=, **=, *~ and **~ for type _text
--
create function array_texteq(_text, text) returns bool
create
or replace
function array_texteq(_text, text) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_all_texteq(_text, text) returns bool
create
or replace
function array_all_texteq(_text, text) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_textregexeq(_text, text) returns bool
create
or replace
function array_textregexeq(_text, text) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_all_textregexeq(_text, text) returns bool
create
or replace
function array_all_textregexeq(_text, text) returns bool
as 'MODULE_PATHNAME'
language 'c';
...
...
@@ -43,19 +43,19 @@ create operator **~ (
--
-- NOTE: "varchar" is also a reserved word and must be quoted.
--
create function array_varchareq(_varchar, varchar) returns bool
create
or replace
function array_varchareq(_varchar, varchar) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_all_varchareq(_varchar, varchar) returns bool
create
or replace
function array_all_varchareq(_varchar, varchar) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_varcharregexeq(_varchar, varchar) returns bool
create
or replace
function array_varcharregexeq(_varchar, varchar) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_all_varcharregexeq(_varchar, varchar) returns bool
create
or replace
function array_all_varcharregexeq(_varchar, varchar) returns bool
as 'MODULE_PATHNAME'
language 'c';
...
...
@@ -82,19 +82,19 @@ create operator **~ (
-- define the array operators *=, **=, *~ and **~ for type _bpchar
--
create function array_bpchareq(_bpchar, bpchar) returns bool
create
or replace
function array_bpchareq(_bpchar, bpchar) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_all_bpchareq(_bpchar, bpchar) returns bool
create
or replace
function array_all_bpchareq(_bpchar, bpchar) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_bpcharregexeq(_bpchar, bpchar) returns bool
create
or replace
function array_bpcharregexeq(_bpchar, bpchar) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_all_bpcharregexeq(_bpchar, bpchar) returns bool
create
or replace
function array_all_bpcharregexeq(_bpchar, bpchar) returns bool
as 'MODULE_PATHNAME'
language 'c';
...
...
@@ -121,51 +121,51 @@ create operator **~ (
-- define the array operators *=, **=, *> and **> for type _int4
--
create function array_int4eq(_int4, int4) returns bool
create
or replace
function array_int4eq(_int4, int4) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_all_int4eq(_int4, int4) returns bool
create
or replace
function array_all_int4eq(_int4, int4) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_int4ne(_int4, int4) returns bool
create
or replace
function array_int4ne(_int4, int4) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_all_int4ne(_int4, int4) returns bool
create
or replace
function array_all_int4ne(_int4, int4) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_int4gt(_int4, int4) returns bool
create
or replace
function array_int4gt(_int4, int4) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_all_int4gt(_int4, int4) returns bool
create
or replace
function array_all_int4gt(_int4, int4) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_int4ge(_int4, int4) returns bool
create
or replace
function array_int4ge(_int4, int4) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_all_int4ge(_int4, int4) returns bool
create
or replace
function array_all_int4ge(_int4, int4) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_int4lt(_int4, int4) returns bool
create
or replace
function array_int4lt(_int4, int4) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_all_int4lt(_int4, int4) returns bool
create
or replace
function array_all_int4lt(_int4, int4) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_int4le(_int4, int4) returns bool
create
or replace
function array_int4le(_int4, int4) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_all_int4le(_int4, int4) returns bool
create
or replace
function array_all_int4le(_int4, int4) returns bool
as 'MODULE_PATHNAME'
language 'c';
...
...
@@ -231,11 +231,11 @@ create operator **<= (
-- define the array operators *=, **<> for type _oid (added tobias 1. 1999)
--
create function array_oideq(_oid, oid) returns bool
create
or replace
function array_oideq(_oid, oid) returns bool
as 'MODULE_PATHNAME'
language 'c';
create function array_all_oidne(_oid, oid) returns bool
create
or replace
function array_all_oidne(_oid, oid) returns bool
as 'MODULE_PATHNAME'
language 'c';
...
...
@@ -249,5 +249,40 @@ create operator **<> (
rightarg=oid,
procedure=array_all_oidne);
-- define the array operators *=, **=, *<>, **<> for type _inet
-- end of file
create or replace function array_ineteq(_inet, inet) returns bool
as 'MODULE_PATHNAME'
language 'c';
create or replace function array_all_ineteq(_inet, inet) returns bool
as 'MODULE_PATHNAME'
language 'c';
create or replace function array_inetne(_inet, inet) returns bool
as 'MODULE_PATHNAME'
language 'c';
create or replace function array_all_inetne(_inet, inet) returns bool
as 'MODULE_PATHNAME'
language 'c';
create operator *= (
leftarg=_inet,
rightarg=inet,
procedure=array_ineteq);
create operator **= (
leftarg=_inet,
rightarg=inet,
procedure=array_all_ineteq);
create operator *<> (
leftarg=_inet,
rightarg=inet,
procedure=array_inetne);
create operator **<> (
leftarg=_inet,
rightarg=inet,
procedure=array_all_inetne);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录