![]() |
Possible bug with _trans_depth transactions - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Possible bug with _trans_depth transactions (/showthread.php?tid=16415) |
Possible bug with _trans_depth transactions - El Forum - 03-05-2009 [eluser]phazei[/eluser] http://ellislab.com/forums/viewthread/101648/#541064 I looked through the code all over DB_driver.php _trans_depth has a default value of 0. It is only incremented if ($this->_trans_depth > 0) So it never increments, ever. Thus nested transactions get committed by the first trans_complete() rather than the outer most one. To fix the 'if' on line 497 should be removed. CI1.7.0 Possible bug with _trans_depth transactions - El Forum - 03-09-2009 [eluser]phazei[/eluser] Am I wrong? EDIT: Oh, just checked out the bug tracker, someone added it a while ago already: http://codeigniter.com/bug_tracker/bug/6108/ nm EDIT2: more info and working fix here: http://ellislab.com/forums/viewthread/101648/ |