Re: setting PreparedStatement parameter using "at time zone interval ?"

Поиск
Список
Период
Сортировка
От Matt Magoffin
Тема Re: setting PreparedStatement parameter using "at time zone interval ?"
Дата
Msg-id 49212.192.168.1.108.1198091199.squirrel@msqr.us
обсуждение исходный текст
Ответ на Re: setting PreparedStatement parameter using "at time zone interval ?"  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-jdbc
> That might've worked back before the driver did real prepared
> statements.  It's invalid syntax though, because typename before the
> constant works only for simple literal string constants.  You got away
> with it when the driver interpolated parameter values into the query as
> string literals, but you can't do it anymore.
>
> ?::interval (or the full-blown CAST syntax) is the right way.
>
> See
> http://developer.postgresql.org/pgdocs/postgres/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS
> particularly 4.1.2.5.

Thank you for the clarification.

-- m@


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

Предыдущее
От: Daniel Migowski
Дата:
Сообщение: Re: TypeInfoCache
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: TypeInfoCache