diff roundup/backends/rdbms_common.py @ 3977:732a37da3a10

Fix for postgres 8.3 compatibility (and bug) (patch [SF#2030479])
author Richard Jones <richard@users.sourceforge.net>
date Thu, 07 Aug 2008 05:50:03 +0000
parents 905faf52a51f
children 954971d612ee
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py	Wed Jul 23 03:04:44 2008 +0000
+++ b/roundup/backends/rdbms_common.py	Thu Aug 07 05:50:03 2008 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 #
-#$Id: rdbms_common.py,v 1.196 2008-02-27 08:32:50 richard Exp $
+#$Id: rdbms_common.py,v 1.197 2008-08-07 05:50:03 richard Exp $
 """ Relational database (SQL) backend common code.
 
 Basics:
@@ -1920,7 +1920,7 @@
         # sqlite)
         sql = "select id from _%s where _%s=%s and __retired__=%s"%(
             self.classname, self.key, self.db.arg, self.db.arg)
-        self.db.sql(sql, (keyvalue, 0))
+        self.db.sql(sql, (str(keyvalue), 0))
 
         # see if there was a result that's not retired
         row = self.db.sql_fetchone()

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