diff roundup/backends/rdbms_common.py @ 1500:7cd110cee870

Fixed issue w. gadfly and exact column matching when table schemas are updated.
author Richard Jones <richard@users.sourceforge.net>
date Sun, 09 Mar 2003 21:37:38 +0000
parents 8ee69708da0c
children a516bbb9896b
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py	Sat Mar 08 20:41:45 2003 +0000
+++ b/roundup/backends/rdbms_common.py	Sun Mar 09 21:37:38 2003 +0000
@@ -1,4 +1,4 @@
-# $Id: rdbms_common.py,v 1.41 2003-03-08 20:41:45 kedder Exp $
+# $Id: rdbms_common.py,v 1.42 2003-03-09 21:37:38 richard Exp $
 ''' Relational database (SQL) backend common code.
 
 Basics:
@@ -215,7 +215,7 @@
         old_has = old_has.has_key
 
         # now figure how we populate the new table
-        fetch = []      # fetch these from the old table
+        fetch = ['_activity', '_creation', '_creator']
         properties = spec.getprops()
         for propname,x in new_spec[1]:
             prop = properties[propname]
@@ -251,7 +251,7 @@
             if __debug__:
                 print >>hyperdb.DEBUG, 'update_class', (self, sql, olddata[0])
             for entry in olddata:
-                self.cursor.execute(sql, *entry)
+                self.cursor.execute(sql, tuple(entry))
 
         return 1
 

Roundup Issue Tracker: http://roundup-tracker.org/