Fix dblink_build_sql_insert() and related functions to handle dropped

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 221f4def6ca33d465c4c1057fe9cfaef69f546a4
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-06-15T19:04:52Z
Releases: 8.0.26
Fix dblink_build_sql_insert() and related functions to handle dropped
columns correctly.  In passing, get rid of some dead logic in the
underlying get_sql_insert() etc functions --- there is no caller that
will pass null value-arrays to them.

Per bug report from Robert Voinea.

Files

PathChange+/−
contrib/dblink/dblink.c modified +36 −38
contrib/dblink/expected/dblink.out modified +37 −0
contrib/dblink/sql/dblink.sql modified +26 −0