コード例 #1
0
ファイル: dbapi.py プロジェクト: neurobcn/plexnet
 def CheckDate(self):
     d = sqlite.Date(2004, 10, 28)
コード例 #2
0
ファイル: types.py プロジェクト: neurobcn/plexnet
 def CheckSqliteDate(self):
     d = sqlite.Date(2004, 2, 14)
     self.cur.execute("insert into test(d) values (?)", (d, ))
     self.cur.execute("select d from test")
     d2 = self.cur.fetchone()[0]
     self.failUnlessEqual(d, d2)