Welcome Guest, Not a member yet? Register   Sign In
transaction : report bug and Solution !
#4

[eluser]smatakajr[/eluser]
Hey Nima. I havent tested your fix as i found another one i just implimented
Im quite new to CI as well but im a certified PHP expert.. so i found another
fix you may want to take a look at as far as nested transactions

http://ellislab.com/forums/viewthread/82771/

Anyhow. I will def lookinto your fix.. my question is

Can I do a transaction like this..

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

$this->db->insert(table,$data);

//then call model
//which has more insert and update queries..
$this->mymodel->insert_function();

$this->db->trans_complete();

What I see is that you can do

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

query1
query2
ect..

$this->db->trans_complete();

Would this keep track of transactions from external
modules

Thanks
Rick


Messages In This Thread
transaction : report bug and Solution ! - by El Forum - 07-29-2008, 04:51 AM
transaction : report bug and Solution ! - by El Forum - 08-01-2008, 09:09 AM
transaction : report bug and Solution ! - by El Forum - 08-12-2008, 01:16 AM
transaction : report bug and Solution ! - by El Forum - 01-29-2009, 10:05 AM
transaction : report bug and Solution ! - by El Forum - 01-29-2009, 10:36 AM
transaction : report bug and Solution ! - by El Forum - 02-19-2009, 11:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB