Author: phd
Date: 2009-04-03 11:18:32 -0600 (Fri, 03 Apr 2009)
New Revision: 3839
Modified:
SQLObject/branches/0.9/docs/News.txt
SQLObject/branches/0.9/sqlobject/inheritance/iteration.py
Log:
Fixed a bug in InheritableIteration - pass connection to child klass.select().
Modified: SQLObject/branches/0.9/docs/News.txt
===================================================================
--- SQLObject/branches/0.9/docs/News.txt 2009-03-27 16:27:58 UTC (rev 3838)
+++ SQLObject/branches/0.9/docs/News.txt 2009-04-03 17:18:32 UTC (rev 3839)
@@ -21,6 +21,9 @@
* Fixed a minor bug - pass name to DecimalValidator.
+* Fixed a bug in InheritableIteration - pass connection to child
+ klass.select().
+
SQLObject 0.9.9
===============
Modified: SQLObject/branches/0.9/sqlobject/inheritance/iteration.py
===================================================================
--- SQLObject/branches/0.9/sqlobject/inheritance/iteration.py 2009-03-27 16:27:58 UTC (rev 3838)
+++ SQLObject/branches/0.9/sqlobject/inheritance/iteration.py 2009-04-03 17:18:32 UTC (rev 3839)
@@ -69,10 +69,10 @@
klass = findClass(childName, registry)
if len(ids) == 1:
select = klass.select(klass.q.id == ids[0],
- childUpdate=True)
+ childUpdate=True, connection=dbconn)
else:
select = klass.select(sqlbuilder.IN(klass.q.id, ids),
- childUpdate=True)
+ childUpdate=True, connection=dbconn)
query = dbconn.queryForSelect(select)
if dbconn.debug:
dbconn.printDebug(rawconn, query, 'Select children of the class %s' % childName)
|