Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
7d937cd4
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,发现更多精彩内容 >>
提交
7d937cd4
编写于
10月 08, 2005
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Cosmetic changes to dblink.
上级
adeca513
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
2 deletion
+7
-2
contrib/dblink/dblink.c
contrib/dblink/dblink.c
+7
-2
未找到文件。
contrib/dblink/dblink.c
浏览文件 @
7d937cd4
...
...
@@ -116,6 +116,7 @@ typedef struct remoteConnHashEnt
var_ = NULL; \
} \
} while (0)
#define DBLINK_RES_INTERNALERROR(p2) \
do { \
msg = pstrdup(PQerrorMessage(conn)); \
...
...
@@ -123,6 +124,7 @@ typedef struct remoteConnHashEnt
PQclear(res); \
elog(ERROR, "%s: %s", p2, msg); \
} while (0)
#define DBLINK_RES_ERROR(p2) \
do { \
msg = pstrdup(PQerrorMessage(conn)); \
...
...
@@ -133,6 +135,7 @@ typedef struct remoteConnHashEnt
errmsg("%s", p2), \
errdetail("%s", msg))); \
} while (0)
#define DBLINK_RES_ERROR_AS_NOTICE(p2) \
do { \
msg = pstrdup(PQerrorMessage(conn)); \
...
...
@@ -143,6 +146,7 @@ typedef struct remoteConnHashEnt
errmsg("%s", p2), \
errdetail("%s", msg))); \
} while (0)
#define DBLINK_CONN_NOT_AVAIL \
do { \
if(conname) \
...
...
@@ -154,6 +158,7 @@ typedef struct remoteConnHashEnt
(errcode(ERRCODE_CONNECTION_DOES_NOT_EXIST), \
errmsg("connection not available"))); \
} while (0)
#define DBLINK_GET_CONN \
do { \
char *conname_or_str = GET_STR(PG_GETARG_TEXT_P(0)); \
...
...
@@ -2039,7 +2044,7 @@ createConnHash(void)
}
static
void
createNewConnection
(
const
char
*
name
,
remoteConn
*
co
n
)
createNewConnection
(
const
char
*
name
,
remoteConn
*
rcon
n
)
{
remoteConnHashEnt
*
hentry
;
bool
found
;
...
...
@@ -2058,7 +2063,7 @@ createNewConnection(const char *name, remoteConn * con)
(
errcode
(
ERRCODE_DUPLICATE_OBJECT
),
errmsg
(
"duplicate connection name"
)));
hentry
->
rcon
=
co
n
;
hentry
->
rcon
=
rcon
n
;
strncpy
(
hentry
->
name
,
name
,
NAMEDATALEN
-
1
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录