Re: Does PGInterval class handle iso_8601 intervalstyle?

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Does PGInterval class handle iso_8601 intervalstyle?
Дата
Msg-id alpine.BSO.2.03.1503271051340.13625@ejurka.com
обсуждение исходный текст
Ответ на Does PGInterval class handle iso_8601 intervalstyle?  (Adam Mackler <psql-jdbc@mackler.org>)
Список pgsql-jdbc

On Thu, 26 Mar 2015, Adam Mackler wrote:

> Is is possible to use the PGInterval class to parse interval literals
> in the format that a server with intervalstyle set to iso_8601
> produces?  If so, how?  If not, why not, and why is no exception
> raised when trying to do so?
>

No it's not currently possible.  The PGInterval class was written prior to
the intervalstyle parameter being added in 8.4 and was never updated to
account for intervals in 8601 format.

Kris Jurka


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