Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
0175759e
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,发现更多精彩内容 >>
提交
0175759e
编写于
10月 30, 1997
作者:
T
Thomas G. Lockhart
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix up elog messages for consistant usage of quotes around arguments.
上级
80440a51
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
22 deletion
+16
-22
src/backend/parser/analyze.c
src/backend/parser/analyze.c
+16
-22
未找到文件。
src/backend/parser/analyze.c
浏览文件 @
0175759e
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.4
7 1997/10/25 01:09:35 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.4
8 1997/10/30 16:34:22 thomas
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -900,7 +900,7 @@ transformIdent(ParseState *pstate, Node *expr, int precedence)
}
if
(
result
==
NULL
)
elog
(
WARN
,
"attribute
\"
%s
\"
not found"
,
ident
->
name
);
elog
(
WARN
,
"attribute
'%s'
not found"
,
ident
->
name
);
return
result
;
}
...
...
@@ -1028,8 +1028,8 @@ exprType(Node *expr)
/*
* expandAllTables -
* turns '*' (in the target list) into a list of attributes
(of all
* relations in the range table)
* turns '*' (in the target list) into a list of attributes
*
(of all
relations in the range table)
*/
static
List
*
expandAllTables
(
ParseState
*
pstate
)
...
...
@@ -1173,7 +1173,7 @@ makeTargetNames(ParseState *pstate, List *cols)
varattno
(
pstate
->
p_target_relation
,
name
);
foreach
(
nxt
,
lnext
(
tl
))
if
(
!
strcmp
(
name
,
((
Ident
*
)
lfirst
(
nxt
))
->
name
))
elog
(
WARN
,
"Attribute
%s
should be specified only once"
,
name
);
elog
(
WARN
,
"Attribute
'%s'
should be specified only once"
,
name
);
}
}
...
...
@@ -1209,15 +1209,9 @@ transformTargetList(ParseState *pstate, List *targetlist)
handleTargetColname
(
pstate
,
&
res
->
name
,
NULL
,
identname
);
/*
* here we want to look for column names only, not
*
relation
* here we want to look for column names only, not
relation
*
names (even though they can be stored in Ident nodes, too)
*/
/*
* names (even though they can be stored in Ident
* nodes,
*/
/* too) */
expr
=
transformIdent
(
pstate
,
(
Node
*
)
res
->
val
,
EXPR_COLUMN_FIRST
);
type_id
=
exprType
(
expr
);
type_len
=
tlen
(
get_id_type
(
type_id
));
...
...
@@ -1755,7 +1749,7 @@ find_targetlist_entry(ParseState *pstate, SortGroupBy *sortgroupby, List *tlist)
if
(
real_rtable_pos
==
test_rtable_pos
)
{
if
(
target_result
!=
NULL
)
elog
(
WARN
,
"Order/Group By
%s
is ambiguous"
,
sortgroupby
->
name
);
elog
(
WARN
,
"Order/Group By
'%s'
is ambiguous"
,
sortgroupby
->
name
);
else
target_result
=
target
;
}
...
...
@@ -1763,7 +1757,7 @@ find_targetlist_entry(ParseState *pstate, SortGroupBy *sortgroupby, List *tlist)
else
{
if
(
target_result
!=
NULL
)
elog
(
WARN
,
"Order/Group By
%s
is ambiguous"
,
sortgroupby
->
name
);
elog
(
WARN
,
"Order/Group By
'%s'
is ambiguous"
,
sortgroupby
->
name
);
else
target_result
=
target
;
}
...
...
@@ -2069,7 +2063,7 @@ setup_tlist(char *attname, Oid relid)
attno
=
get_attnum
(
relid
,
attname
);
if
(
attno
<
0
)
elog
(
WARN
,
"cannot reference attribute
%s
of tuple params/return values for functions"
,
attname
);
elog
(
WARN
,
"cannot reference attribute
'%s'
of tuple params/return values for functions"
,
attname
);
typeid
=
find_atttype
(
relid
,
attname
);
resnode
=
makeResdom
(
1
,
...
...
@@ -2171,7 +2165,7 @@ ParseComplexProjection(ParseState *pstate,
else
{
elog
(
WARN
,
"Function
%s
has bad returntype %d"
,
"Function
'%s'
has bad returntype %d"
,
funcname
,
argtype
);
}
}
...
...
@@ -2240,7 +2234,7 @@ ParseComplexProjection(ParseState *pstate,
}
elog
(
WARN
,
"Function
%s
has bad returntype %d"
,
elog
(
WARN
,
"Function
'%s'
has bad returntype %d"
,
funcname
,
argtype
);
break
;
}
...
...
@@ -2304,7 +2298,7 @@ ParseFunc(ParseState *pstate, char *funcname, List *fargs, int *curr_resno)
{
first_arg
=
lfirst
(
fargs
);
if
(
first_arg
==
NULL
)
elog
(
WARN
,
"function
%s
does not allow NULL input"
,
funcname
);
elog
(
WARN
,
"function
'%s'
does not allow NULL input"
,
funcname
);
}
/*
...
...
@@ -2375,7 +2369,7 @@ ParseFunc(ParseState *pstate, char *funcname, List *fargs, int *curr_resno)
}
else
elog
(
WARN
,
"Type
%s
is not a relation type"
,
"Type
'%s'
is not a relation type"
,
tname
(
get_id_type
(
toid
)));
argrelid
=
typeid_get_relid
(
toid
);
...
...
@@ -2477,7 +2471,7 @@ ParseFunc(ParseState *pstate, char *funcname, List *fargs, int *curr_resno)
if
(
exprType
(
pair
)
==
UNKNOWNOID
&&
!
IsA
(
pair
,
Const
))
{
elog
(
WARN
,
"ParseFunc: no function named
%s
that takes in an unknown type as argument #%d"
,
funcname
,
nargs
);
elog
(
WARN
,
"ParseFunc: no function named
'%s'
that takes in an unknown type as argument #%d"
,
funcname
,
nargs
);
}
else
toid
=
exprType
(
pair
);
...
...
@@ -2520,7 +2514,7 @@ ParseFunc(ParseState *pstate, char *funcname, List *fargs, int *curr_resno)
}
if
(
!
exists
)
elog
(
WARN
,
"no such attribute or function
%s
"
,
funcname
);
elog
(
WARN
,
"no such attribute or function
'%s'
"
,
funcname
);
/* got it */
funcnode
=
makeNode
(
Func
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录