Check to ensure the number of primary key fields supplied does not

Joe Conway <mail@joeconway.com>

Commit: ff6a12b3f341ad6d19da4b55322b80d72831904f
Author: Joe Conway <mail@joeconway.com>
Date: 2010-02-03T23:01:47Z
Releases: 8.2.16
Check to ensure the number of primary key fields supplied does not
exceed the total number of non-dropped source table fields for
dblink_build_sql_*(). Addresses bug report from Rushabh Lathia.

Backpatch all the way to the 7.3 branch.

Files

PathChange+/−
contrib/dblink/dblink.c modified +57 −1
contrib/dblink/expected/dblink.out modified +9 −0
contrib/dblink/sql/dblink.sql modified +6 −0