[SQL-CVS] r1727 - SQLObject/trunk/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2006-04-25 13:53:45
|
Author: phd
Date: 2006-04-25 07:53:39 -0600 (Tue, 25 Apr 2006)
New Revision: 1727
Modified:
SQLObject/trunk/sqlobject/sqlbuilder.py
Log:
Copy items and make the copy a list in the case it was a tuple.
Modified: SQLObject/trunk/sqlobject/sqlbuilder.py
===================================================================
--- SQLObject/trunk/sqlobject/sqlbuilder.py 2006-04-21 15:23:00 UTC (rev 1726)
+++ SQLObject/trunk/sqlobject/sqlbuilder.py 2006-04-25 13:53:39 UTC (rev 1727)
@@ -447,7 +447,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:
|