Edgewall Software

Ticket #2830: trac-sortfix-r2946.patch

File trac-sortfix-r2946.patch, 703 bytes (added by Andres Salomon <dilinger@…>, 6 years ago)

Fix column sort oops, against r2946.

  • trac/ticket/report.py

    ------------------------------------------------------------
    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'
     
    410410        cursor.execute(sql, args) 
    411411 
    412412        # FIXME: fetchall should probably not be used. 
    413         info = cursor.fetchall() or [] 
     413        info = list(cursor.fetchall()) or [] 
    414414        cols = cursor.description or [] 
    415415 
    416416        db.rollback()