dblink: Fix variable confusion introduced in e4602483e95
authorAndres Freund <andres@anarazel.de>
Wed, 1 Feb 2023 01:36:39 +0000 (17:36 -0800)
committerAndres Freund <andres@anarazel.de>
Wed, 1 Feb 2023 01:47:53 +0000 (17:47 -0800)
commitfbed4bc59e362e13fb0d0e0b08c995c18c7e4d5a
tree622adab8d6fcf5171c57d70e49417fdd440b05d8
parentc2891175052772b603da6d0ae634e42b63b7f274
dblink: Fix variable confusion introduced in e4602483e95

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
contrib/dblink/dblink.c
contrib/dblink/expected/dblink.out
contrib/dblink/sql/dblink.sql