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

Joe Conway <mail@joeconway.com>

Commit: fdac8cf998b9a41fa2b64cb3a80bc02548189082
Author: Joe Conway <mail@joeconway.com>
Date: 2010-02-03T23:01:11Z
Releases: 9.0.0
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