Re: Runtime error when calling function from .NET ( Function returns record) - Mailing list pgsql-general

From Tom Lane
Subject Re: Runtime error when calling function from .NET ( Function returns record)
Date
Msg-id 15717.1168875888@sss.pgh.pa.us
Whole thread Raw
In response to Runtime error when calling function from .NET ( Function returns record)  (dparent <davidp@channeladvisor.com>)
List pgsql-general
dparent <davidp@channeladvisor.com> writes:
> I have a function which returns TYPE RECORD and receives a string. The passed
> string is used to build a dynamic SQL statement and the passed string is the
> SELECT LIST of the built dynamic SQL statement.

> The call works fine from Postgres SQL (PL/PG SQL) but when I make the call
> from .NET (Core labs data provider), I get a runtime error.

It sounds a bit like the .net provider is editorializing on your query :-(.
I'd suggest enabling statement logging on the server to confirm or
refute that.  If it is indeed changing your SQL then complaining to its
authors seems the next step.

            regards, tom lane

pgsql-general by date:

Previous
From: Aleksander Kmetec
Date:
Subject: Unpredicatable behavior of volatile functions used in cursors
Next
From: Tom Lane
Date:
Subject: Re: Unpredicatable behavior of volatile functions used in cursors