Fix dblink_build_sql_insert() and related functions to handle dropped

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

Commit: 873b9b8a3d5d57520484fabef680e2cbddc58760
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-06-15T19:04:59Z
Releases: 7.4.30
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 +36 −0
contrib/dblink/sql/dblink.sql modified +25 −0