mirror of
https://github.com/postgres/postgres.git
synced 2026-04-20 22:00:13 -04:00
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 an unnamed connection and did not have a name to search with. Kris Jurka
This commit is contained in:
parent
5a5f34e022
commit
fe2bfa6332
1 changed files with 3 additions and 3 deletions
|
|
@ -310,10 +310,10 @@ dblink_open(PG_FUNCTION_ARGS)
|
|||
conname = GET_STR(PG_GETARG_TEXT_P(0));
|
||||
curname = GET_STR(PG_GETARG_TEXT_P(1));
|
||||
sql = GET_STR(PG_GETARG_TEXT_P(2));
|
||||
rcon = getConnectionByName(conname);
|
||||
if (rcon)
|
||||
conn = rcon->con;
|
||||
}
|
||||
rcon = getConnectionByName(conname);
|
||||
if (rcon)
|
||||
conn = rcon->con;
|
||||
}
|
||||
else if (PG_NARGS() == 4)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue