Re: JDBC problem with dates and ANYELEMENT type

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: JDBC problem with dates and ANYELEMENT type
Дата
Msg-id Pine.BSO.4.64.0904232234430.16180@leary.csoft.net
обсуждение исходный текст
Ответ на JDBC problem with dates and ANYELEMENT type  ("Peter" <peter@greatnowhere.com>)
Ответы Re: JDBC problem with dates and ANYELEMENT type
Список pgsql-jdbc

On Thu, 23 Apr 2009, Peter wrote:

> So it indeed sets ‘unspecified’ type which works fine if your target
> datatype is defined, but fails miserably on ANYELEMENT.
>
> Any suggestions how to work around this so we can still use ANYELEMENT
> and pass in DATE?
>

You can put a cast into the query itself "SELECT ?::date".

Kris Jurka

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

Предыдущее
От: "Peter"
Дата:
Сообщение: JDBC problem with dates and ANYELEMENT type
Следующее
От: Jeppe Sommer
Дата:
Сообщение: Here's a fix to AbstractJdbc3Statement.getGeneratedKeys