Am 29.08.2016 um 04:40 schrieb raf:
What does work (lucky guess) is using str() as the typecast
function:

  pgdb.set_typecast('timestamptz', str) # Python2 at least

Right, that's how you can access the raw data.

Or alternatively,

  pgdb.set_typecast('timestamptz', lambda v: v)

This works the same way in Python 3.

See also:

http://www.pygresql.org/contents/pgdb/module.html#get-set-reset-typecast-control-the-global-typecast-functions

-- Chris
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to