When returning type "record", replace use of pgresultGetTupleDesc

Joe Conway <mail@joeconway.com>

Commit: a7e5e2fe740fc1b8a111df9494ba8adfe4eec7ca
Author: Joe Conway <mail@joeconway.com>
Date: 2004-02-24T06:07:52Z
Releases: 7.3.6
When returning type "record", replace use of pgresultGetTupleDesc
with ReturnSetInfo->expectedDesc. This allows custom datatypes
(e.g. from tsearch2) to be returned at runtime. Previous behavior
depended on the type oid to match between the remote and local
database, which obviously doesn't work well for custom types.
Per report from Mark Gibson.

Files

PathChange+/−
contrib/dblink/dblink.c modified +18 −56