OSDN Git Service

When returning type "record", replace use of pgresultGetTupleDesc
authorJoe Conway <mail@joeconway.com>
Tue, 24 Feb 2004 06:07:18 +0000 (06:07 +0000)
committerJoe Conway <mail@joeconway.com>
Tue, 24 Feb 2004 06:07:18 +0000 (06:07 +0000)
commit3cd841182679c80d9a02d2ce53806e7b0995b8ce
treeefef82c7cca47004a6acc4b156a36604b8f3fdab
parent64a2e1fdef195aab773aaa8c92c9aa49e1c5fb12
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