Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7d937cd

Browse files
committed
Cosmetic changes to dblink.
1 parentadeca51 commit7d937cd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎contrib/dblink/dblink.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,15 @@ typedef struct remoteConnHashEnt
116116
var_ = NULL; \
117117
} \
118118
} while (0)
119+
119120
#defineDBLINK_RES_INTERNALERROR(p2) \
120121
do { \
121122
msg = pstrdup(PQerrorMessage(conn)); \
122123
if (res) \
123124
PQclear(res); \
124125
elog(ERROR, "%s: %s", p2, msg); \
125126
} while (0)
127+
126128
#defineDBLINK_RES_ERROR(p2) \
127129
do { \
128130
msg = pstrdup(PQerrorMessage(conn)); \
@@ -133,6 +135,7 @@ typedef struct remoteConnHashEnt
133135
errmsg("%s", p2), \
134136
errdetail("%s", msg))); \
135137
} while (0)
138+
136139
#defineDBLINK_RES_ERROR_AS_NOTICE(p2) \
137140
do { \
138141
msg = pstrdup(PQerrorMessage(conn)); \
@@ -143,6 +146,7 @@ typedef struct remoteConnHashEnt
143146
errmsg("%s", p2), \
144147
errdetail("%s", msg))); \
145148
} while (0)
149+
146150
#defineDBLINK_CONN_NOT_AVAIL \
147151
do { \
148152
if(conname) \
@@ -154,6 +158,7 @@ typedef struct remoteConnHashEnt
154158
(errcode(ERRCODE_CONNECTION_DOES_NOT_EXIST), \
155159
errmsg("connection not available"))); \
156160
} while (0)
161+
157162
#defineDBLINK_GET_CONN \
158163
do { \
159164
char *conname_or_str = GET_STR(PG_GETARG_TEXT_P(0)); \
@@ -2039,7 +2044,7 @@ createConnHash(void)
20392044
}
20402045

20412046
staticvoid
2042-
createNewConnection(constchar*name,remoteConn*con)
2047+
createNewConnection(constchar*name,remoteConn*rconn)
20432048
{
20442049
remoteConnHashEnt*hentry;
20452050
boolfound;
@@ -2058,7 +2063,7 @@ createNewConnection(const char *name, remoteConn * con)
20582063
(errcode(ERRCODE_DUPLICATE_OBJECT),
20592064
errmsg("duplicate connection name")));
20602065

2061-
hentry->rcon=con;
2066+
hentry->rcon=rconn;
20622067
strncpy(hentry->name,name,NAMEDATALEN-1);
20632068
}
20642069

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp