Re: PreparedStatement error upon trying to set a '?' after interval keyword

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: PreparedStatement error upon trying to set a '?' after interval keyword
Дата
Msg-id 53EA1050.2060504@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: PreparedStatement error upon trying to set a '?' after interval keyword  (Sehrope Sarkuni <sehrope@jackdb.com>)
Список pgsql-jdbc
On 08/12/2014 08:22 PM, Sehrope Sarkuni wrote:
> I'd probably use the ::interval cast syntax though, so something like:
> checkin_time > (CURRENT_DATE - (? * '1 day'::interval))

I only used

   INTERVAL '1' DAY

because AFAIK that's the standard form. Given the miserable support for
intervals in other RDBMSes, it doesn't matter much in practice.

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


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

Предыдущее
От: Sehrope Sarkuni
Дата:
Сообщение: Re: PreparedStatement error upon trying to set a '?' after interval keyword
Следующее
От: Barry Bell
Дата:
Сообщение: [ODBC] BIRT report opening multiple connections