Skip to content

Commit 8feb44e

Browse files
author
Alexander Smishlajev
committed
use backend datatype for journal timestamps.
this fixes DateTime parsing errors raised by sqlite if mx.DateTime is installed
1 parent f99a765 commit 8feb44e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

roundup/backends/rdbms_common.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.149 2005-02-14 02:48:11 richard Exp $
1+
# $Id: rdbms_common.py,v 1.150 2005-03-02 14:03:44 a1s Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -532,8 +532,9 @@ def create_journal_table(self, spec):
532532
cols = ','.join(['%s varchar'%x
533533
for x in 'nodeid date tag action params'.split()])
534534
sql = '''create table %s__journal (
535-
nodeid integer, date timestamp, tag varchar(255),
536-
action varchar(255), params text)'''%spec.classname
535+
nodeid integer, date %s, tag varchar(255),
536+
action varchar(255), params text)''' % (spec.classname,
537+
self.hyperdb_to_sql_datatypes[hyperdb.Date])
537538
self.sql(sql)
538539
self.create_journal_table_indexes(spec)
539540

0 commit comments

Comments
 (0)