Am 12.09.2016 um 08:32 schrieb raf:
Unfortunately, the changlog file gives incorrect instructions:
http://www.pygresql.org/contents/changelog.html
Dates, times, timestamps and time intervals are now returned as the
corresponding
Python objects from the datetime module of the standard library. In earlier
versions
of PyGreSQL they had been returned as strings. You can restore the old
behavior by
deactivating the respective typecast functions, e.g. set_typecast('date’,
None).
That "None" at the end should be changed to say "lambda v: v".
Yes, you're right about that. It works as described in pg, but in pgdb
it behaves a bit differently. Setting it to lambda v: v or str works in
both cases. I have fixed the changelog now in the trunk.
-- Chris
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql