Bug #816: Bad time conversion from type abstime to datetime

Поиск
Список
Период
Сортировка
Искать

Bug #816: Bad time conversion from type abstime to datetime

От:
pgsql-bugs@postgresql.org
Дата:
Paul Mamin (magamos@mail.ru) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
Bad time conversion from type abstime to datetime

Long Description
After making query (in psql):
select '2002-11-12 15:02:05'::abstime::datetime;
      timestamp
---------------------
 2002-11-12 05:02:05
(1 row)

... I got time with substraction of 12 hours.

Linux, PostgreSQL 7.2.1, 7.2.3

Sample Code

	   

No file was uploaded with this report

Re: Bug #816: Bad time conversion from type abstime to datetime

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
pgsql-bugs@postgresql.org writes:
> select '2002-11-12 15:02:05'::abstime::datetime;
>       timestamp
> ---------------------
>  2002-11-12 05:02:05
> (1 row)

Seems to be fixed in 7.3.

			regards, tom lane
FAQ