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

Commitfe2bfa6

Browse files
committed
This makes dblink pass its installcheck test on platforms where
snprintf(data, len, %s, NULL) crash.The code was trying to find a connection by name when it already had anunnamed connection and did not have a name to search with.Kris Jurka
1 parent5a5f34e commitfe2bfa6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎contrib/dblink/dblink.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,10 @@ dblink_open(PG_FUNCTION_ARGS)
310310
conname=GET_STR(PG_GETARG_TEXT_P(0));
311311
curname=GET_STR(PG_GETARG_TEXT_P(1));
312312
sql=GET_STR(PG_GETARG_TEXT_P(2));
313+
rcon=getConnectionByName(conname);
314+
if (rcon)
315+
conn=rcon->con;
313316
}
314-
rcon=getConnectionByName(conname);
315-
if (rcon)
316-
conn=rcon->con;
317317
}
318318
elseif (PG_NARGS()==4)
319319
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp