Bug #607: to_date() function bug

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема Bug #607: to_date() function bug
Дата
Msg-id 20020304192110.6E83F4764D9@postgresql.org
обсуждение исходный текст
Ответы Re: Bug #607: to_date() function bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Nurlan Mukhanov (nurlan@otdyh.kz) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
to_date() function bug

Long Description
otdyh=# select to_date(20020200,'YYYYMMDD');
  to_date
------------
 2002-02-01

must be 2002-01-31  !! 
Why???

00 hours 00 minutes 00 seconds - next day or last day???
last day!!!

2000 year is 20 century or 21 century? - 20!!

same here!
00 day - is the last day of the previous month!

Sample Code


No file was uploaded with this report

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

Предыдущее
От: "Riendeau, Mike"
Дата:
Сообщение: Re: Sun Solaris 2.5.1 Seg Faults PostgreSQL7.1.3 build com
Следующее
От: Steve Wranovsky
Дата:
Сообщение: Incorrect PostgreSQL 7.2 ODBC RPM for RedHat 6.2