[SQL-CVS] r1728 - SQLObject/branches/0.7-bugfix/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2006-04-25 13:54:06
|
Author: phd
Date: 2006-04-25 07:53:58 -0600 (Tue, 25 Apr 2006)
New Revision: 1728
Modified:
SQLObject/branches/0.7-bugfix/sqlobject/sqlbuilder.py
Log:
Copy items and make the copy a list in the case it was a tuple.
Modified: SQLObject/branches/0.7-bugfix/sqlobject/sqlbuilder.py
===================================================================
--- SQLObject/branches/0.7-bugfix/sqlobject/sqlbuilder.py 2006-04-25 13:53:39 UTC (rev 1727)
+++ SQLObject/branches/0.7-bugfix/sqlobject/sqlbuilder.py 2006-04-25 13:53:58 UTC (rev 1728)
@@ -444,7 +444,7 @@
select = "SELECT %s" % ", ".join([sqlrepr(v, db) for v in self.items])
tables = {}
- things = self.items[:]
+ things = list(self.items)
if self.whereClause is not NoDefault:
things.append(self.whereClause)
for thing in things:
|