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