Welcome Guest, Not a member yet? Register   Sign In
Nested DB transactions
#1

[eluser]Unknown[/eluser]
Hi!

In model1 i start transaction and in the middle of it I call method from otherModel which also has transaction. Do those 2 nested transactions count as one?



Code:
-load someModel
$this->db->trans_start();

     $this->db->query('come query');

    
     -call some function from someModel which has another transaction start and complete in it

$this->db->trans_complete();

And sorry for my poor English please!


Messages In This Thread
Nested DB transactions - by El Forum - 01-08-2009, 05:00 AM
Nested DB transactions - by El Forum - 01-08-2009, 06:10 AM
Nested DB transactions - by El Forum - 01-08-2009, 08:21 AM
Nested DB transactions - by El Forum - 02-28-2009, 09:27 PM
Nested DB transactions - by El Forum - 02-28-2009, 09:41 PM
Nested DB transactions - by El Forum - 02-28-2009, 09:58 PM
Nested DB transactions - by El Forum - 03-03-2009, 04:39 AM
Nested DB transactions - by El Forum - 03-24-2009, 03:54 PM
Nested DB transactions - by El Forum - 03-25-2009, 08:13 PM
Nested DB transactions - by El Forum - 05-24-2009, 09:24 AM
Nested DB transactions - by El Forum - 10-23-2010, 06:42 AM
Nested DB transactions - by El Forum - 11-08-2012, 07:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB