Code

don't modify filterspec passed in (bad Richard)
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 8 Apr 2003 06:41:48 +0000 (06:41 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 8 Apr 2003 06:41:48 +0000 (06:41 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1650 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/backends/rdbms_common.py

index f9d45cf1347fe7b0083cafdd51d8fa9deecbe73d..ffc9391af7b65ab7b0d3c40e70072106a313be8f 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: rdbms_common.py,v 1.52 2003-03-26 10:44:03 richard Exp $
+# $Id: rdbms_common.py,v 1.53 2003-04-08 06:41:48 richard Exp $
 ''' Relational database (SQL) backend common code.
 
 Basics:
@@ -1824,6 +1824,7 @@ class Class(hyperdb.Class):
             elif isinstance(propclass, Link):
                 if isinstance(v, type([])):
                     if '-1' in v:
+                        v = v[:]
                         v.remove('-1')
                         xtra = ' or _%s is NULL'%k
                     else: