Użytkownik Ed Leafe napisał:
> 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):
>
Hi.
Unfortunately, this commit raises
UnboundLocalError: local variable 'row' referenced before assignment
exception on all my Python 2.7 machines, so I reverted it in my Dabo branch,
since
I don't use 2.6 anymore.
--
Regards
Jacek Kałucki
_______________________________________________
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]