Re: ERROR: 42601: a column definition list is only allowed for functions returning "record"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Gopal" <gopal(at)getmapping(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: 42601: a column definition list is only allowed for functions returning "record"
Date: 2006-11-22 15:15:58
Message-ID: 29296.1164208558@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Gopal" <gopal(at)getmapping(dot)com> writes:
> I am using c# and npgsql 1.0 (same behaviour with 0.7) to call a
> function that has 6 input parameters and 4 output parameters.
> When I call .ExecuteNonQuery(), I get the following message
> ERROR: 42601: a column definition list is only allowed for functions
> returning "record"

I think you need a newer version of npgsql, ie, one that understands
about OUT parameters. It sounds to me like it is noticing the function
result type is RECORD and it doesn't realize that that doesn't mean
it has to specify the output column types in the query.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma Jr 2006-11-22 15:17:01 Re: PGSQL Newbie
Previous Message Matthias.Pitzl 2006-11-22 15:14:36 Re: PGSQL Newbie