dabo Commit
Revision 7219
Date: 2012-08-05 08:04:25 -0700 (Sun, 05 Aug 2012)
Author: Ed
Trac: http://trac.dabodev.com/changeset/7219

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

Log:
Corrected syntax error spotted by Henning Hraban Ramm.

Diff:
Modified: trunk/dabo/db/dbMsSQL.py
===================================================================
--- trunk/dabo/db/dbMsSQL.py    2012-08-04 15:02:49 UTC (rev 7218)
+++ trunk/dabo/db/dbMsSQL.py    2012-08-05 15:04:25 UTC (rev 7219)
@@ -58,7 +58,7 @@
                                def fetchall(self):
                                        # In dictionary mode both column 
numbers and names are used
                                        # as keys. We need to filter them and 
leave name based keys only.
-                                       return tuple([{col: row[col] for col in 
row if type(col) != int}
+                                       return tuple([{col: row[col]} for col 
in row if type(col) != int
                                                        for row in 
super(ConCursor, self).fetchall()])
                else:
                        class ConCursor(self.dbapi.pymssqlCursor):



_______________________________________________
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