Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
f05c6509
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,发现更多精彩内容 >>
提交
f05c6509
编写于
7月 08, 2011
作者:
P
Peter Eisentraut
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Message style improvements
上级
c59b8ba6
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
14 addition
and
14 deletion
+14
-14
doc/src/sgml/func.sgml
doc/src/sgml/func.sgml
+1
-1
src/backend/commands/alter.c
src/backend/commands/alter.c
+1
-1
src/backend/replication/basebackup.c
src/backend/replication/basebackup.c
+2
-2
src/backend/replication/walsender.c
src/backend/replication/walsender.c
+2
-2
src/backend/utils/adt/varlena.c
src/backend/utils/adt/varlena.c
+2
-2
src/test/regress/expected/text.out
src/test/regress/expected/text.out
+6
-6
未找到文件。
doc/src/sgml/func.sgml
浏览文件 @
f05c6509
...
...
@@ -1523,7 +1523,7 @@
<entry><type>text</type></entry>
<entry>
Format a string. This function is similar to the C function
<function>sprintf</>; but only the following conversions
<function>sprintf</>; but only the following conversion
specification
s
are recognized: <literal>%s</literal> interpolates the corresponding
argument as a string; <literal>%I</literal> escapes its argument as
an SQL identifier; <literal>%L</literal> escapes its argument as an
...
...
src/backend/commands/alter.c
浏览文件 @
f05c6509
...
...
@@ -421,7 +421,7 @@ AlterObjectNamespace(Relation rel, int oidCacheId, int nameCacheId,
if
(
Anum_owner
<=
0
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INSUFFICIENT_PRIVILEGE
),
(
errmsg
(
"must be superuser to
SET SCHEMA
of %s"
,
(
errmsg
(
"must be superuser to
set schema
of %s"
,
getObjectDescriptionOids
(
classId
,
objid
)))));
/* Otherwise, must be owner of the existing object */
...
...
src/backend/replication/basebackup.c
浏览文件 @
f05c6509
...
...
@@ -119,7 +119,7 @@ perform_base_backup(basebackup_options *opt, DIR *tblspcdir)
if
(
readlink
(
fullpath
,
linkpath
,
sizeof
(
linkpath
)
-
1
)
==
-
1
)
{
ereport
(
WARNING
,
(
errmsg
(
"
unable to read symbolic link %s
: %m"
,
fullpath
)));
(
errmsg
(
"
could not read symbolic link
\"
%s
\"
: %m"
,
fullpath
)));
continue
;
}
...
...
@@ -363,7 +363,7 @@ SendBaseBackup(BaseBackupCmd *cmd)
dir
=
AllocateDir
(
"pg_tblspc"
);
if
(
!
dir
)
ereport
(
ERROR
,
(
errmsg
(
"
unable to open directory pg_tblspc
: %m"
)));
(
errmsg
(
"
could not open directory
\"
pg_tblspc
\"
: %m"
)));
perform_base_backup
(
&
opt
,
dir
);
...
...
src/backend/replication/walsender.c
浏览文件 @
f05c6509
...
...
@@ -515,7 +515,7 @@ ProcessRepliesIfAny(void)
default:
ereport
(
FATAL
,
(
errcode
(
ERRCODE_PROTOCOL_VIOLATION
),
errmsg
(
"invalid standby message type
%d
"
,
errmsg
(
"invalid standby message type
\"
%c
\"
"
,
firstchar
)));
}
}
...
...
@@ -566,7 +566,7 @@ ProcessStandbyMessage(void)
default:
ereport
(
COMMERROR
,
(
errcode
(
ERRCODE_PROTOCOL_VIOLATION
),
errmsg
(
"unexpected message type
%c
"
,
msgtype
)));
errmsg
(
"unexpected message type
\"
%c
\"
"
,
msgtype
)));
proc_exit
(
0
);
}
}
...
...
src/backend/utils/adt/varlena.c
浏览文件 @
f05c6509
...
...
@@ -3887,7 +3887,7 @@ text_format(PG_FUNCTION_ARGS)
if
(
arg
>
PG_NARGS
()
-
1
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"too few arguments for format
conversion
"
)));
errmsg
(
"too few arguments for format"
)));
/*
* At this point, we should see the main conversion specifier. Whether
...
...
@@ -3908,7 +3908,7 @@ text_format(PG_FUNCTION_ARGS)
default:
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"unrecognized conversion specifier
: %c
"
,
errmsg
(
"unrecognized conversion specifier
\"
%c
\"
"
,
*
cp
)));
}
}
...
...
src/test/regress/expected/text.out
浏览文件 @
f05c6509
...
...
@@ -171,11 +171,11 @@ select format('Hello %%%%');
-- should fail
select format('Hello %s %s', 'World');
ERROR: too few arguments for format
conversion
ERROR: too few arguments for format
select format('Hello %s');
ERROR: too few arguments for format
conversion
ERROR: too few arguments for format
select format('Hello %x', 20);
ERROR: unrecognized conversion specifier
: x
ERROR: unrecognized conversion specifier
"x"
-- check literal and sql identifiers
select format('INSERT INTO %I VALUES(%L,%L)', 'mytab', 10, 'Hello');
format
...
...
@@ -219,15 +219,15 @@ select format('%1$s %12$s', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
-- should fail
select format('%1$s %4$s', 1, 2, 3);
ERROR: too few arguments for format
conversion
ERROR: too few arguments for format
select format('%1$s %13$s', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
ERROR: too few arguments for format
conversion
ERROR: too few arguments for format
select format('%1s', 1);
ERROR: unterminated conversion specifier
select format('%1$', 1);
ERROR: unterminated conversion specifier
select format('%1$1', 1);
ERROR: unrecognized conversion specifier
: 1
ERROR: unrecognized conversion specifier
"1"
--checkk mix of positional and ordered placeholders
select format('Hello %s %1$s %s', 'World', 'Hello again');
format
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录