Rollback only if a transaction is on
Used conn.is_dirty()
Merge pull request #1578 from gem/no-rollback

Rollback only if a transaction is on