Edgewall Software

Changes between Initial Version and Version 1 of Ticket #12226, comment 5


Ignore:
Timestamp:
Nov 4, 2015, 4:41:17 AM (7 years ago)
Author:
Jun Omae

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12226, comment 5

    initial v1  
    11For MySQL, a failure of query wouldn't lead abort of the transaction, e.g not found table and unique key violation. We should catch exceptions outside a transaction context manager. Otherwise, explicitly call `db.rollback()`.
     2
     3See also:
     4 - [source:tags/trac-1.1.6/trac/web/session.py@:130,132-133#L116]
     5 - [source:tags/trac-1.1.6/trac/versioncontrol/cache.py@:183,191-193#L162]
    26
    37{{{#!diff