Re: 'current' timestamp chokes jdbc driver

Поиск
Список
Период
Сортировка
Искать
От
Joseph Shraibman
Тема
Re: 'current' timestamp chokes jdbc driver
Дата
в 20:22:12
Msg-id
3AF73883.84A6DF28@selectacast.net
Список
Дерево обсуждения
Re: 'current' timestamp chokes jdbc driver Joseph Shraibman <jks@selectacast.net>
Tom Lane wrote:
> 
> Joseph Shraibman  writes:
> > If you set a timestamp field to be 'current' as per
> > http://www.ca.postgresql.org/docs/postgres/datatype-datetime.html#AEN322
> > jdbc chokes on selecting that value:
> 
> 'current' is deprecated and is going to go away in 7.2 anyway (that's
> why it's undocumented).  So I'm not sure it's worth hacking JDBC to
> deal with it...
> 

As long as it is there jdbc should be able to handle it w/o throwing an
Exception, and the jdbc drivers are expected to connect with old
versions of the database so it makes sense to leave the handling in
there permanently (but maybe with a comment).

And 'current' *is* documented, I gave the url above.


-- 
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://www.targabot.com
В списке pgsql-jdbc по дате отправления
От: Joseph Shraibman
Дата:
От: Bruce Momjian
Дата:
FAQ