changeset 1707:3d627e34f18e

sqlite backend now passes all tests under 2.3. Searching for other parts of the code that was assigning the value of a boolean test (either =.*not or =.*==) showed nothing else that looked likely.
author Anthony Baxter <anthonybaxter@users.sourceforge.net>
date Tue, 24 Jun 2003 08:06:27 +0000
parents 5a28eea9a33c
children 9595eee0c116
files roundup/backends/rdbms_common.py
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py	Tue Jun 24 07:06:12 2003 +0000
+++ b/roundup/backends/rdbms_common.py	Tue Jun 24 08:06:27 2003 +0000
@@ -1,4 +1,4 @@
-# $Id: rdbms_common.py,v 1.55 2003-04-22 20:53:54 kedder Exp $
+# $Id: rdbms_common.py,v 1.56 2003-06-24 08:06:27 anthonybaxter Exp $
 ''' Relational database (SQL) backend common code.
 
 Basics:
@@ -1739,10 +1739,9 @@
             Set retired=None to get all nodes. Otherwise it'll get all the 
             retired or non-retired nodes, depending on the flag.
         '''
-        # flip the sense of the flag if we don't want all of them
+        # flip the sense of the 'retired' flag if we don't want all of them
         if retired is not None:
-            retired = not retired
-            args = (retired, )
+            args = (((retired==0) and 1) or 0, )
             sql = 'select id from _%s where __retired__ <> %s'%(self.classname,
                 self.db.arg)
         else:

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