Re: Proposed patch: make SQL interval-literal syntax work per spec

Поиск
Список
Период
Сортировка
От Ron Mayer
Тема Re: Proposed patch: make SQL interval-literal syntax work per spec
Дата
Msg-id 48C9B2FD.8090607@cheapcomplexdevices.com
обсуждение исходный текст
Ответ на Re: Proposed patch: make SQL interval-literal syntax work per spec  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Proposed patch: make SQL interval-literal syntax work per spec
Список pgsql-hackers
Tom Lane wrote:
> 
> The other problem is that the SQL spec clearly defines an interval
> literal syntax, and it's not this ISO thing.  So even without backward
> compatibility issues, 8601-only doesn't seem like it would fly.
> 

Oh.  I wasn't proposing 8601-only.  Just the one-character
shorthands like '1Y1M'::interval that postgresql interprets
as "1 year one minute".   No standard specifies anything close
to that; and any similar standards ask to interpret that M as
months instead of minutes.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Proposed patch: make SQL interval-literal syntax work per spec
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Proposed patch: make SQL interval-literal syntax work per spec