Date-Time dangling unit fix

Поиск
Список
Период
Сортировка
От Joseph Koshakow
Тема Date-Time dangling unit fix
Дата
Msg-id CAAvxfHf2Q1gKLiHGnuPOiyf0ASvKUM4BnMfsXuwgtYEb_Gx0Zw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Date-Time dangling unit fix  (Joseph Koshakow <koshy44@gmail.com>)
Список pgsql-hackers
Hi all,

Attached is a patch to fix a parsing error for date-time types that
allow dangling units in the input. For example,
`date '1995-08-06 m y d'` was considered a valid date and the dangling
units were ignored.

Intervals also suffer from a similar issue, but the attached patch
doesn't fix that issue. For example,
`interval '1 day second month 6 hours days years ago'` is parsed as a
valid interval with -1 days and -6 hours. I'm hoping to fix that in a
later patch, but it will likely be more complicated than the other
date-time fixes.

- Joe Koshakow

Вложения

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Error-safe user functions
Следующее
От: Joseph Koshakow
Дата:
Сообщение: Re: Date-Time dangling unit fix