When returning type "record", replace use of pgresultGetTupleDesc

Joe Conway <mail@joeconway.com>

Commit: 27ae96c2b63c6ba68a2b8776cdd478dc779b641d
Author: Joe Conway <mail@joeconway.com>
Date: 2004-02-24T06:07:34Z
Releases: 7.4.2
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 +22 −60