EllisLab/CodeIgniter — pull request #692 by mikeland86 (2011-11-22 19:47:37+00:00)
Title: Fix to nested transactions

Fix to nested transactions so that only outer one triggers starts, commits, and rollbacks. The _trans_depth variable was never getting incremented so every trans_complete was causing a commit. This fix makes sure it is incremented and only the most outer transactions have any effect.