------------------------------------------------------------
revno: 8
committer: Andres Salomon <dilinger@athenacr.com>
branch nick: trac-sortfix
timestamp: Thu 2006-03-02 18:19:32 -0500
message:
Return lists instead of tuples from execute_report(). cursor.fetchall() needs
to be manually casted; cursor.description already is a list.
=== modified file 'trac/ticket/report.py'
|
|
|
|
| 410 | 410 | cursor.execute(sql, args) |
| 411 | 411 | |
| 412 | 412 | # FIXME: fetchall should probably not be used. |
| 413 | | info = cursor.fetchall() or [] |
| | 413 | info = list(cursor.fetchall()) or [] |
| 414 | 414 | cols = cursor.description or [] |
| 415 | 415 | |
| 416 | 416 | db.rollback() |