Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
9b5ca7ee
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,发现更多精彩内容 >>
提交
9b5ca7ee
编写于
5月 11, 2002
作者:
T
Tom Lane
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Forgot to handle 'opaque' function arguments in regprocedurein/out.
上级
9f0ae0c8
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
19 addition
and
13 deletion
+19
-13
src/backend/utils/adt/regproc.c
src/backend/utils/adt/regproc.c
+19
-13
未找到文件。
src/backend/utils/adt/regproc.c
浏览文件 @
9b5ca7ee
...
...
@@ -13,7 +13,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.6
7 2002/05/01 23:06:41
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.6
8 2002/05/11 00:24:16
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -40,7 +40,7 @@
static
List
*
stringToQualifiedNameList
(
const
char
*
string
,
const
char
*
caller
);
static
void
parseNameAndArgTypes
(
const
char
*
string
,
const
char
*
caller
,
bool
allow_none
,
const
char
*
type0_spelling
,
List
**
names
,
int
*
nargs
,
Oid
*
argtypes
);
...
...
@@ -261,7 +261,7 @@ regprocedurein(PG_FUNCTION_ARGS)
* datatype cannot be used for any system column that needs to receive
* data during bootstrap.
*/
parseNameAndArgTypes
(
pro_name_or_oid
,
"regprocedurein"
,
false
,
parseNameAndArgTypes
(
pro_name_or_oid
,
"regprocedurein"
,
"opaque"
,
&
names
,
&
nargs
,
argtypes
);
clist
=
FuncnameGetCandidates
(
names
,
nargs
);
...
...
@@ -326,12 +326,16 @@ regprocedureout(PG_FUNCTION_ARGS)
quote_qualified_identifier
(
nspname
,
proname
));
for
(
i
=
0
;
i
<
nargs
;
i
++
)
{
appendStringInfo
(
&
buf
,
"%s%s"
,
(
i
>
0
)
?
","
:
""
,
format_type_be
(
procform
->
proargtypes
[
i
]));
}
Oid
thisargtype
=
procform
->
proargtypes
[
i
];
appendStringInfo
(
&
buf
,
")"
);
if
(
i
>
0
)
appendStringInfoChar
(
&
buf
,
','
);
if
(
OidIsValid
(
thisargtype
))
appendStringInfo
(
&
buf
,
"%s"
,
format_type_be
(
thisargtype
));
else
appendStringInfo
(
&
buf
,
"opaque"
);
}
appendStringInfoChar
(
&
buf
,
')'
);
result
=
buf
.
data
;
...
...
@@ -567,7 +571,7 @@ regoperatorin(PG_FUNCTION_ARGS)
* datatype cannot be used for any system column that needs to receive
* data during bootstrap.
*/
parseNameAndArgTypes
(
opr_name_or_oid
,
"regoperatorin"
,
true
,
parseNameAndArgTypes
(
opr_name_or_oid
,
"regoperatorin"
,
"none"
,
&
names
,
&
nargs
,
argtypes
);
if
(
nargs
==
1
)
elog
(
ERROR
,
"regoperatorin: use NONE to denote the missing argument of a unary operator"
);
...
...
@@ -1000,10 +1004,12 @@ stringToQualifiedNameList(const char *string, const char *caller)
* the argtypes array should be of size FUNC_MAX_ARGS). The function or
* operator name is returned to *names as a List of Strings.
*
* NONE is accepted as a placeholder for OID 0 if allow_none is true.
* If type0_spelling is not NULL, it is a name to be accepted as a
* placeholder for OID 0.
*/
static
void
parseNameAndArgTypes
(
const
char
*
string
,
const
char
*
caller
,
bool
allow_none
,
parseNameAndArgTypes
(
const
char
*
string
,
const
char
*
caller
,
const
char
*
type0_spelling
,
List
**
names
,
int
*
nargs
,
Oid
*
argtypes
)
{
char
*
rawname
;
...
...
@@ -1109,9 +1115,9 @@ parseNameAndArgTypes(const char *string, const char *caller, bool allow_none,
*
ptr2
=
'\0'
;
}
if
(
allow_none
&&
strcasecmp
(
typename
,
"none"
)
==
0
)
if
(
type0_spelling
&&
strcasecmp
(
typename
,
type0_spelling
)
==
0
)
{
/*
Report NONE as OID 0
*/
/*
Special case for OPAQUE or NONE
*/
typeid
=
InvalidOid
;
typmod
=
-
1
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录