ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:transoff

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

v5:reference:connection:transoff [2016/04/14 15:43] – created mnewnhamv5:reference:connection:transoff [2016/04/14 15:45] (current) mnewnham
Line 1: Line 1:
 ====== transOff ====== ====== transOff ======
 ~~NOTOC~~ ~~NOTOC~~
-<WRAP right box}+<WRAP right box>
 == Syntax == == Syntax ==
   int ADOconnection::transOff   int ADOconnection::transOff
Line 8: Line 8:
 Setting the value of ''$db->transOff'' temporarily disables transaction startup.  Setting the value of ''$db->transOff'' temporarily disables transaction startup. 
  
-For **//granular//** transaction handling, the value is automatically set to 1 after the first [[v5:reference:begintrans|beginTrans()]] statement, which prevents transaction scopes being nested.+For **//granular//** transaction handling
 +  * The value is automatically set to 1 after the first [[v5:reference:connection:begintrans|beginTrans()]] statement, which prevents transaction scopes being nested
 +  * * Causes ADOdb to ignore any [[v5:reference:connection:begintrans|beginTrans()]] requests, if a transaction has not been started.
  
 For **//smart//** transaction handling, Setting transOff to 1: For **//smart//** transaction handling, Setting transOff to 1:
-    * Causes ADOdb to ignore any [[v5:reference:starttrans|startTrans()]] requests, if a transaction has not been started. +    * Causes ADOdb to ignore any [[v5:reference:connection:starttrans|startTrans()]] requests, if a transaction has not been started. 
-    * Acts like [[v5:reference:failtrans|failTrans()]] if a transaction has been started.+    * Acts like [[v5:reference:connection:failtrans|failTrans()]] if a transaction has been started.
  
 ===== Usage ===== ===== Usage =====
v5/reference/connection/transoff.txt · Last modified: 2016/04/14 15:45 by mnewnham