When returning type "record", replace use of pgresultGetTupleDesc
authorJoe Conway <mail@joeconway.com>
Tue, 24 Feb 2004 06:07:34 +0000 (06:07 +0000)
committerJoe Conway <mail@joeconway.com>
Tue, 24 Feb 2004 06:07:34 +0000 (06:07 +0000)
commit8452632aff477d5caa979f832528232d332b603b
tree0a548d3833e78fe0b28a10c8f87759590b4cc733
parentdcd881d5cb17e003567ccaa353881178f2dd851b
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.
contrib/dblink/dblink.c