dabo Commit
Revision 7002
Date: 2011-12-02 08:27:51 -0800 (Fri, 02 Dec 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/7002

Changed:
U   trunk/dabo/db/dCursorMixin.py

Log:
Added the 'DISTINCT' quallifier to queries involving many-to-many cursors.

Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py       2011-12-02 16:14:03 UTC (rev 7001)
+++ trunk/dabo/db/dCursorMixin.py       2011-12-02 16:27:51 UTC (rev 7002)
@@ -2704,6 +2704,8 @@
 
                if not fieldClause:
                        fieldClause = "*"
+               if self._isMM:
+                       fieldClause = "DISTINCT %s" % fieldClause
 
                if not fromClause:
                        fromClause = self.Table



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to