This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xiang.zhang
Recipients belopolsky, bozo.kopic, ghaering, lemburg, serhiy.storchaka, xiang.zhang
Date 2016-12-29.10:38:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483007916.71.0.439305981704.issue29099@psf.upfronthosting.co.za>
In-reply-to
Content
import sqlite3, datetime
c = sqlite3.connect(':memory:', detect_types=sqlite3.PARSE_DECLTYPES|sqlite3.PARSE_COLNAMES)
cur = c.cursor()
cur.execute('create table test(t timestamp)')
t = datetime.datetime.now(tz=datetime.timezone.utc)
cur.execute("insert into test(t) values (?)", (t,))
cur.execute('select t from test')
l = cur.fetchone()[0]
t == l   # the result not equal to the original one
History
Date User Action Args
2016-12-29 10:38:36xiang.zhangsetrecipients: + xiang.zhang, lemburg, ghaering, belopolsky, serhiy.storchaka, bozo.kopic
2016-12-29 10:38:36xiang.zhangsetmessageid: <1483007916.71.0.439305981704.issue29099@psf.upfronthosting.co.za>
2016-12-29 10:38:36xiang.zhanglinkissue29099 messages
2016-12-29 10:38:36xiang.zhangcreate