PostgreSql RETURNS SETOF refcursor and UniStoredProc

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
zeroandr
Posts: 1
Joined: Sun 11 Nov 2012 08:22

PostgreSql RETURNS SETOF refcursor and UniStoredProc

Post by zeroandr » Sun 11 Nov 2012 08:32

Good day! Starting with version 4.2.7 UniStoredProc does not open a stored procedure from PostgreSQL thet RETURNS SETOF refcursor

Code: Select all

UniStoredProc := TUniStoredProc.Create(nil);
  UniStoredProc.Connection := UniConnection;
  UniStoredProc.StoredProcName := 'test_proc';
  UniConnection.StartTransaction;
  UniStoredProc.Open;

this code returns field "test_proc" is of unknown type,
In version 4.1.5 this error does not occur and I was able to get a cursor
with TDACursorField(UniStoredProc.Fields[0]).AsCursor;

ZEuS
Devart Team
Posts: 240
Joined: Thu 05 Apr 2012 07:32

Re: PostgreSql RETURNS SETOF refcursor and UniStoredProc

Post by ZEuS » Mon 12 Nov 2012 08:19

Thank you for the information. We have fixed the error with SETOF REFCURSOR procedure parameters, and will include the fix in the next UniDAC build.

Post Reply