We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36758c4 commit 49a00e0Copy full SHA for 49a00e0
contrib/dblink/dblink.c
@@ -272,8 +272,13 @@ dblink_connect(PG_FUNCTION_ARGS)
272
conname_or_str = text_to_cstring(PG_GETARG_TEXT_PP(0));
273
274
if (connname)
275
+ {
276
rconn = (remoteConn *) MemoryContextAlloc(TopMemoryContext,
277
sizeof(remoteConn));
278
+ rconn->conn = NULL;
279
+ rconn->openCursorCount = 0;
280
+ rconn->newXactForCursor = false;
281
+ }
282
283
/* first check for valid foreign data server */
284
connstr = get_connect_string(conname_or_str);
0 commit comments