BC date getting misinterpreted?

Поиск
Список
Период
Сортировка
От Joe Abbate
Тема BC date getting misinterpreted?
Дата
Msg-id 901cb864-1f80-4fd2-43cc-82528c149b3d@freedomcircle.com
обсуждение исходный текст
Ответы Re: BC date getting misinterpreted?  (Christophe Pettus <xof@thebuild.com>)
Список psycopg
The test case is fairly simple:

curs.execute("SELECT '044-03-15 BC'::date")
rows = curs.fetchall()

This results in:

ValueError: year -43 is out of range

[This is Python 3.6, in 2.7, the value is missing]

This was working since last October, but the error started happening 
around the Ides of March (my actual dates are different, but I changed 
the example to fit :-)

Tested against 9.3 thru 10.

Joe


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

Предыдущее
От: Mike Bayer
Дата:
Сообщение: Re: About the psycopg2 name
Следующее
От: Christophe Pettus
Дата:
Сообщение: Re: BC date getting misinterpreted?