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

Joe Conway <mail@joeconway.com>

Commit: 7b537a85408bdec6fad2ef21038e159173f54cea
Author: Joe Conway <mail@joeconway.com>
Date: 2010-02-03T23:02:07Z
Releases: 8.1.20
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 +56 −0
contrib/dblink/expected/dblink.out modified +9 −0
contrib/dblink/sql/dblink.sql modified +6 −0