Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
482e6936
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,发现更多精彩内容 >>
提交
482e6936
编写于
1月 31, 2007
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert error message change for may/can/might --- needs discussion.
上级
a134ee33
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
10 deletion
+10
-10
doc/src/sgml/sources.sgml
doc/src/sgml/sources.sgml
+2
-2
doc/src/sgml/typeconv.sgml
doc/src/sgml/typeconv.sgml
+2
-2
src/backend/parser/parse_func.c
src/backend/parser/parse_func.c
+3
-3
src/backend/parser/parse_oper.c
src/backend/parser/parse_oper.c
+3
-3
未找到文件。
doc/src/sgml/sources.sgml
浏览文件 @
482e6936
<!-- $PostgreSQL: pgsql/doc/src/sgml/sources.sgml,v 2.2
1 2007/01/31 20:56:19
momjian Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/sources.sgml,v 2.2
2 2007/01/31 21:03:37
momjian Exp $ -->
<chapter id="source">
<title>PostgreSQL Coding Conventions</title>
...
...
@@ -95,7 +95,7 @@ ereport(ERROR,
func_signature_string(funcname, nargs,
actual_arg_types)),
errhint("Unable to choose a best candidate function. "
"You m
ight
need to add explicit typecasts.")));
"You m
ay
need to add explicit typecasts.")));
</programlisting>
This illustrates the use of format codes to embed run-time values into
a message text. Also, an optional <quote>hint</> message is provided.
...
...
doc/src/sgml/typeconv.sgml
浏览文件 @
482e6936
<!-- $PostgreSQL: pgsql/doc/src/sgml/typeconv.sgml,v 1.
49 2007/01/31 20:56:19
momjian Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/typeconv.sgml,v 1.
50 2007/01/31 21:03:37
momjian Exp $ -->
<chapter Id="typeconv">
<title>Type Conversion</title>
...
...
@@ -447,7 +447,7 @@ try a similar case with <literal>~</>, we get:
SELECT ~ '20' AS "negation";
ERROR: operator is not unique: ~ "unknown"
HINT: Could not choose a best candidate operator. You m
ight
need to add explicit
HINT: Could not choose a best candidate operator. You m
ay
need to add explicit
type casts.
</screen>
This happens because the system can't decide which of the several
...
...
src/backend/parser/parse_func.c
浏览文件 @
482e6936
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/parser/parse_func.c,v 1.19
2 2007/01/31 20:56:20
momjian Exp $
* $PostgreSQL: pgsql/src/backend/parser/parse_func.c,v 1.19
3 2007/01/31 21:03:37
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -213,7 +213,7 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
func_signature_string
(
funcname
,
nargs
,
actual_arg_types
)),
errhint
(
"Could not choose a best candidate function. "
"You m
ight
need to add explicit type casts."
),
"You m
ay
need to add explicit type casts."
),
parser_errposition
(
pstate
,
location
)));
else
ereport
(
ERROR
,
...
...
@@ -222,7 +222,7 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
func_signature_string
(
funcname
,
nargs
,
actual_arg_types
)),
errhint
(
"No function matches the given name and argument types. "
"You m
ight
need to add explicit type casts."
),
"You m
ay
need to add explicit type casts."
),
parser_errposition
(
pstate
,
location
)));
}
...
...
src/backend/parser/parse_oper.c
浏览文件 @
482e6936
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/parser/parse_oper.c,v 1.9
2 2007/01/31 20:56:20
momjian Exp $
* $PostgreSQL: pgsql/src/backend/parser/parse_oper.c,v 1.9
3 2007/01/31 21:03:37
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -771,7 +771,7 @@ op_error(ParseState *pstate, List *op, char oprkind,
errmsg
(
"operator is not unique: %s"
,
op_signature_string
(
op
,
oprkind
,
arg1
,
arg2
)),
errhint
(
"Could not choose a best candidate operator. "
"You m
ight
need to add explicit type casts."
),
"You m
ay
need to add explicit type casts."
),
parser_errposition
(
pstate
,
location
)));
else
ereport
(
ERROR
,
...
...
@@ -779,7 +779,7 @@ op_error(ParseState *pstate, List *op, char oprkind,
errmsg
(
"operator does not exist: %s"
,
op_signature_string
(
op
,
oprkind
,
arg1
,
arg2
)),
errhint
(
"No operator matches the given name and argument type(s). "
"You m
ight
need to add explicit type casts."
),
"You m
ay
need to add explicit type casts."
),
parser_errposition
(
pstate
,
location
)));
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录