]> granicus.if.org Git - postgresql/commit
postgres_fdw: Avoid possible misbehavior when RETURNING tableoid column only.
authorRobert Haas <rhaas@postgresql.org>
Fri, 5 Feb 2016 03:15:50 +0000 (22:15 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 5 Feb 2016 03:27:47 +0000 (22:27 -0500)
commit2099b911d75738e18749e89019bf75f20dfde4c1
tree1c8218523736f3b8d2b0f4bb2bddc9fdefd94bc8
parent1f3294c22f614da74dd98a2ef69137bfa9135c96
postgres_fdw: Avoid possible misbehavior when RETURNING tableoid column only.

deparseReturningList ended up adding up RETURNING NULL to the code, but
code elsewhere saw an empty list of attributes and concluded that it
should not expect tuples from the remote side.

Etsuro Fujita and Robert Haas, reviewed by Thom Brown
contrib/postgres_fdw/deparse.c
contrib/postgres_fdw/expected/postgres_fdw.out
contrib/postgres_fdw/sql/postgres_fdw.sql