1- #$Id: back_mysql.py,v 1.53 2005-01-08 11:25:22 jlgijsbers Exp $
1+ #$Id: back_mysql.py,v 1.54 2005-02-13 21:15:04 richard Exp $
22#
33# Copyright (c) 2003 Martynas Sklyzmantas, Andrey Lebedev <[email protected] > 44#
@@ -319,7 +319,7 @@ def add_new_columns_v2(self):
319319 for nodeid , journaldate , journaltag , action , params in \
320320 self .cursor .fetchall ():
321321 #nodeid = int(nodeid)
322- journaldate = str ( date .Date (journaldate ) )
322+ journaldate = date .Date (journaldate )
323323 #params = eval(params)
324324 olddata .append ((nodeid , journaldate , journaltag , action ,
325325 params ))
@@ -331,8 +331,9 @@ def add_new_columns_v2(self):
331331
332332 # re-create journal table
333333 self .create_journal_table (klass )
334+ dc = self .hyperdb_to_sql_value [hyperdb .Date ]
334335 for nodeid , journaldate , journaltag , action , params in olddata :
335- self .save_journal (cn , cols , nodeid , journaldate ,
336+ self .save_journal (cn , cols , nodeid , dc ( journaldate ) ,
336337 journaltag , action , params )
337338
338339 # make sure the normal schema update code doesn't try to
0 commit comments