| От | pgsql-bugs@postgresql.org |
|---|---|
| Тема | date_part returns wrong day for 1974-04-28 |
| Дата | |
| Msg-id | 200104091821.f39ILB669488@hub.org обсуждение исходный текст |
| Список | pgsql-bugs |
Phil Steinke (lintec@clarkhall.ca) reports a bug with a severity of 2
The lower the number the more severe it is.
Short Description
date_part returns wrong day for 1974-04-28
Long Description
The date_part function is returning the wrong value for the date 1974-04-28. It seems to work with other similar dates
(+/-a day, +/- a year).
I'm using:
version
---------------------------------------------------------------
PostgreSQL 7.0.3 on i686-pc-linux-gnu, compiled by gcc 2.95.2
Specifically, the postgresql_7.0.3-4 package from Debian unstable (sid), on a Pentium 100 with 32 megs of RAM (10MB
stillfree though).
Feel free to contact me for more information.
Sample Code
select date_part('day', date('1974-04-28'));
No file was uploaded with this report
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера