time values past 24:00:00 (or rather 23:59:60)

Поиск
Список
Период
Сортировка
От Christoph Berg
Тема time values past 24:00:00 (or rather 23:59:60)
Дата
Msg-id 20200520125807.GB296739@msg.df7cb.de
обсуждение исходный текст
Ответы Re: time values past 24:00:00 (or rather 23:59:60)
Список pgsql-bugs
This is ok:

# select '23:59:60'::time;
   time
──────────
 24:00:00

# select '23:59:61'::time;
ERROR:  22008: date/time field value out of range: "23:59:61"

This is not ok:

# select '23:59:60.999'::time;
     time
──────────────
 24:00:00.999

-- value isn't read back:
# select '24:00:00.999'::time;
ERROR:  22008: date/time field value out of range: "24:00:00.999"

-- we can even go to :01
# select '23:59:60.9999999'::time;
   time
──────────
 24:00:01


PG 12.3.

Christoph



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

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: BUG #16343: Build problem: Install.pm "Could not find debug orrelease binaries"
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Re : Re: BUG #16441: Cannot multi-insert into generated columnwith DEFAULT value