mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
dblink: Fix variable confusion introduced in e4602483e9
Thanks to Robins to find the issue and Nathan for promptly writing a test case to prevent future problems like this. Reported-by: Nathan Bossart <nathandbossart@gmail.com> Reported-by: Robins Tharakan <tharakan@gmail.com> Author: Nathan Bossart <nathandbossart@gmail.com> Discussion: https://postgr.es/m/20230130193008.GA2740781@nathanxps13
This commit is contained in:
@ -321,7 +321,7 @@ dblink_connect(PG_FUNCTION_ARGS)
|
||||
else
|
||||
{
|
||||
if (pconn->conn)
|
||||
libpqsrv_disconnect(conn);
|
||||
libpqsrv_disconnect(pconn->conn);
|
||||
pconn->conn = conn;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user