Re Enable Transactions after using trans_off() |
To disable database transactions at run-time you can call
PHP Code: $this->db->trans_off(); Maybe I am missing something but I don't see any way to reverse this call to allow transaction processing. The abstract class DB_driver defines trans_off() with this code. PHP Code: public function trans_off() The property $trans_enabled is used throughout the class to allow (or not) class methods to proceed. For instance PHP Code: public function trans_start($test_mode = FALSE) The "issue", if there is one, is that the documentation at Enabling Transactions implies that calling $this->db->trans_start(); will re-start transaction processing after a call to $this->db->trans_off(); But that is not the case as the code snippet above clearly illustrates. |
Messages In This Thread |
Re Enable Transactions after using trans_off() - by dave friend - 10-22-2016, 06:36 AM
RE: Re Enable Transactions after using trans_off() - by Narf - 10-22-2016, 06:41 AM
RE: Re Enable Transactions after using trans_off() - by dave friend - 10-22-2016, 06:55 AM
RE: Re Enable Transactions after using trans_off() - by Narf - 10-22-2016, 07:17 AM
RE: Re Enable Transactions after using trans_off() - by dave friend - 10-22-2016, 07:44 AM
RE: Re Enable Transactions after using trans_off() - by Narf - 10-22-2016, 09:54 AM
RE: Re Enable Transactions after using trans_off() - by dave friend - 10-23-2016, 08:20 AM
RE: Re Enable Transactions after using trans_off() - by Narf - 10-24-2016, 12:08 AM
RE: Re Enable Transactions after using trans_off() - by Narf - 10-24-2016, 12:23 AM
RE: Re Enable Transactions after using trans_off() - by dave friend - 10-24-2016, 03:38 AM
|