Welcome Guest, Not a member yet? Register   Sign In
Code igniter transaction don't rollback on SQL error
#3

(This post was last modified: 05-04-2017, 05:48 AM by Esthar.)

But standing to the documentation, if i use $this->db->trans_start() & $this->db->trans_complete(), the queryies will rollback automatically when one of those fail.

Why my records are affected the same when one query fails?

I've noticed the engine of the table affected by the transaction was MyIsam, and than i changed it to InnoDB, ( because MyIsam not support transactions), but the results are the same. The queryies never rollback on a failure state.
Reply


Messages In This Thread
RE: Code igniter transaction don't rollback on SQL error - by Esthar - 05-04-2017, 03:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB