Re: npgsql and postgres enum type

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: npgsql and postgres enum type
Дата
Msg-id b42b73150910151142pdfb30f7l138b24d57644feaf@mail.gmail.com
обсуждение исходный текст
Ответ на npgsql and postgres enum type  (danclemson <danclemson@gmail.com>)
Ответы Re: npgsql and postgres enum type
Re: npgsql and postgres enum type
Список pgsql-general
On Thu, Oct 15, 2009 at 12:31 PM, danclemson <danclemson@gmail.com> wrote:
>
> Hi,
>
> As postgres now has enum type, does npgsql driver support the enum type?
>
> I use c# and npgsql as databse driver.  One of the database stored procedure
> takes enum as its parameter.
>
> What will be the DbType for postgres enum type?

that's really a npgsql question, but as long as you have access to the
sql being used, you should be able to work around it by altering the
sql like this:

select some_function('abc'::the_enum);

merlin

В списке pgsql-general по дате отправления:

Предыдущее
От: danclemson
Дата:
Сообщение: npgsql and postgres enum type
Следующее
От: William Temperley
Дата:
Сообщение: Re: npgsql and postgres enum type