Welcome Guest, Not a member yet? Register   Sign In
Commit and rollback with CI
#4

[eluser]Relexx[/eluser]
I believe that CI uses PDO not mysql or mysqli, assuming that you are using Database class, so my guess you would need to use mysql or mysqli transaction interface instead if you are explicity using these.

Re: Auto Commit. The whole purpose of a transaction encapsulation is the ability to roll back a number of sql statements without having to undo an already committed transaction. Auto commit is ok when not performing sql in an encapsulated transaction. I would stick with the defaults. If you want to execute multiple inserts, updates, deletes, and if one fails rollback, encapsulate the statements with trans_start trans_complete.


Messages In This Thread
Commit and rollback with CI - by El Forum - 02-17-2009, 11:01 PM
Commit and rollback with CI - by El Forum - 02-17-2009, 11:16 PM
Commit and rollback with CI - by El Forum - 02-18-2009, 07:25 AM
Commit and rollback with CI - by El Forum - 02-18-2009, 07:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB