]> git.ipfire.org Git - thirdparty/postgresql.git/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:38 +0000 (22:27 -0500)
commitd160e2a343996030804cc6b74cc5a0b133dae950
tree8440df45b3741ae0a5696822cef4321a9d57798e
parent453d40817cd27910930248ab23a1e81fa04628f1
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