Skip to content

Commit cb3c17d

Browse files
author
Richard Jones
committed
fixes to mysql upgrade code
1 parent d0f137a commit cb3c17d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

roundup/backends/back_mysql.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ def add_new_columns_v2(self):
276276
prop = properties[name]
277277
if v is not None:
278278
e = self.hyperdb_to_sql_value[prop.__class__](v)
279+
else:
280+
e = None
279281
l.append(e)
280282

281283
# Intervals store the seconds value too
@@ -314,9 +316,9 @@ def add_new_columns_v2(self):
314316
olddata = []
315317
for nodeid, journaldate, journaltag, action, params in \
316318
self.cursor.fetchall():
317-
nodeid = int(nodeid)
318-
journaldate = date.Date(journaldate)
319-
params = eval(params)
319+
#nodeid = int(nodeid)
320+
journaldate = str(date.Date(journaldate))
321+
#params = eval(params)
320322
olddata.append((nodeid, journaldate, journaltag, action,
321323
params))
322324

0 commit comments

Comments
 (0)