Fix dblink_build_sql_insert() and related functions to handle dropped

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

Commit: 37d8570d4d3f9e5d14ea152f99c5a848a5a2d611
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-06-15T19:04:22Z
Releases: 8.4.5
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 +38 −32
contrib/dblink/expected/dblink.out modified +37 −0
contrib/dblink/sql/dblink.sql modified +26 −0