Re: npgsql and postgres enum type

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: danclemson <danclemson(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: npgsql and postgres enum type
Date: 2009-10-15 21:01:02
Message-ID: b42b73150910151401taf39e51w96b02f6f2abc5a53@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Oct 15, 2009 at 4:14 PM, danclemson <danclemson(at)gmail(dot)com> wrote:
>
> Thanks for the information.
>
> I did try the approach, but it failed due to any other issue with npgsql.
>
> The stored procedure returns a setof refcursor.
> If I use "select * from test('e1':testEnum)", the command.ExecuteReader does
> not return the datareader properly. The code errored out when I use the
> datareader to get the data in the refcursor.
>

if you can't figure out any other solution (there probably is one),
wrap your procedure in sql function that takes text and do the casting
there.

merlin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Hunsberger 2009-10-15 21:20:23 Craeteing sparse arrays
Previous Message danclemson 2009-10-15 20:14:15 Re: npgsql and postgres enum type