Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
cc1b420c
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,发现更多精彩内容 >>
提交
cc1b420c
编写于
10月 30, 1997
作者:
T
Thomas G. Lockhart
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add routines istrue() and isfalse() to directly evaluate boolean type.
上级
770352d2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
20 addition
and
3 deletion
+20
-3
src/backend/utils/adt/bool.c
src/backend/utils/adt/bool.c
+13
-1
src/include/catalog/pg_proc.h
src/include/catalog/pg_proc.h
+4
-1
src/include/utils/builtins.h
src/include/utils/builtins.h
+3
-1
未找到文件。
src/backend/utils/adt/bool.c
浏览文件 @
cc1b420c
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/bool.c,v 1.
9 1997/10/25 05:09:58
thomas Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/bool.c,v 1.
10 1997/10/30 16:45:12
thomas Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -116,3 +116,15 @@ boolgt(bool arg1, bool arg2)
...
@@ -116,3 +116,15 @@ boolgt(bool arg1, bool arg2)
{
{
return
(
arg1
>
arg2
);
return
(
arg1
>
arg2
);
}
}
bool
istrue
(
bool
arg1
)
{
return
(
arg1
==
TRUE
);
}
/* istrue() */
bool
isfalse
(
bool
arg1
)
{
return
(
arg1
!=
TRUE
);
}
/* istrue() */
src/include/catalog/pg_proc.h
浏览文件 @
cc1b420c
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pg_proc.h,v 1.3
2 1997/10/25 05:29:48
thomas Exp $
* $Id: pg_proc.h,v 1.3
3 1997/10/30 16:44:06
thomas Exp $
*
*
* NOTES
* NOTES
* The script catalog/genbki.sh reads this file and generates .bki
* The script catalog/genbki.sh reads this file and generates .bki
...
@@ -729,6 +729,9 @@ DATA(insert OID = 947 ( oidnamene PGUID 11 f t f 2 f 16 "911 911" 100 0 0 1
...
@@ -729,6 +729,9 @@ DATA(insert OID = 947 ( oidnamene PGUID 11 f t f 2 f 16 "911 911" 100 0 0 1
DATA
(
insert
OID
=
948
(
oidnamecmp
PGUID
11
f
t
f
2
f
23
"911 911"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
948
(
oidnamecmp
PGUID
11
f
t
f
2
f
23
"911 911"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
949
(
mkoidname
PGUID
11
f
t
f
2
f
911
"26 19"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
949
(
mkoidname
PGUID
11
f
t
f
2
f
911
"26 19"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
950
(
istrue
PGUID
11
f
t
f
1
f
16
"16"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
951
(
isfalse
PGUID
11
f
t
f
1
f
16
"16"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
952
(
lo_open
PGUID
11
f
t
f
2
f
23
"26 23"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
952
(
lo_open
PGUID
11
f
t
f
2
f
23
"26 23"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
953
(
lo_close
PGUID
11
f
t
f
1
f
23
"23"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
953
(
lo_close
PGUID
11
f
t
f
1
f
23
"23"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
954
(
loread
PGUID
11
f
t
f
2
f
17
"23 23"
100
0
0
100
foo
bar
));
DATA
(
insert
OID
=
954
(
loread
PGUID
11
f
t
f
2
f
17
"23 23"
100
0
0
100
foo
bar
));
...
...
src/include/utils/builtins.h
浏览文件 @
cc1b420c
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: builtins.h,v 1.2
8 1997/10/25 05:40:43
thomas Exp $
* $Id: builtins.h,v 1.2
9 1997/10/30 16:42:50
thomas Exp $
*
*
* NOTES
* NOTES
* This should normally only be included by fmgr.h.
* This should normally only be included by fmgr.h.
...
@@ -35,6 +35,8 @@ extern bool booleq(bool arg1, bool arg2);
...
@@ -35,6 +35,8 @@ extern bool booleq(bool arg1, bool arg2);
extern
bool
boolne
(
bool
arg1
,
bool
arg2
);
extern
bool
boolne
(
bool
arg1
,
bool
arg2
);
extern
bool
boollt
(
bool
arg1
,
bool
arg2
);
extern
bool
boollt
(
bool
arg1
,
bool
arg2
);
extern
bool
boolgt
(
bool
arg1
,
bool
arg2
);
extern
bool
boolgt
(
bool
arg1
,
bool
arg2
);
extern
bool
istrue
(
bool
arg1
);
extern
bool
isfalse
(
bool
arg1
);
/* char.c */
/* char.c */
extern
int32
charin
(
char
*
ch
);
extern
int32
charin
(
char
*
ch
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录