]> granicus.if.org Git - postgresql/commit
Consolidate and improve checking of key-column-attnum arguments for
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 15 Jun 2010 16:22:39 +0000 (16:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 15 Jun 2010 16:22:39 +0000 (16:22 +0000)
commit7ea5d1c5aa59230101c03dc3cb160df1e1c1b1a2
tree08bdf320a65d6296f3b6cfc66f9edb067898d39f
parentecb23d8b8bbffb976ef649a8926cb7ce2d1f19df
Consolidate and improve checking of key-column-attnum arguments for
dblink_build_sql_insert() and related functions.  In particular, be sure to
reject references to dropped and out-of-range column numbers.  The numbers
are still interpreted as physical column numbers, though, for backward
compatibility.

This patch replaces Joe's patch of 2010-02-03, which handled only some aspects
of the problem.
contrib/dblink/dblink.c
contrib/dblink/expected/dblink.out