Re: Runtime error when calling function from .NET ( Function returns record)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: dparent <davidp(at)channeladvisor(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Runtime error when calling function from .NET ( Function returns record)
Date: 2007-01-15 15:44:48
Message-ID: 15717.1168875888@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

dparent <davidp(at)channeladvisor(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-01-15 15:50:27 Re: Unpredicatable behavior of volatile functions used in cursors
Previous Message Aleksander Kmetec 2007-01-15 15:15:08 Unpredicatable behavior of volatile functions used in cursors