-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
when querying a timestamp, i always get a string object (rather than
datetime.datetime | mx.DateTime.DateTime). Is this intended?

The output of my interactive python session:
>>> import pgdb # using pygresql 3.6.2
>>> ...
>>> cursor.execute("select CURRENT_TIMESTAMP")
>>> (timestamp,) = cursor.fetchone()
>>> type(timestamp)
<type 'str'>

Should I give the non-standard interface (pg.db) a try?

Regards,

- --
Simon Hengel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC/2CJd4QlweXdn3ERAkw2AKDLvpxSsP5xXE63wD2nf8uoBu8X1ACdEzVi
nFGfTTlqaxYufpPT9eEKBpI=
=UbbZ
-----END PGP SIGNATURE-----
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to