ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:completetrans

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
v5:reference:connection:completetrans [2016/01/17 00:19] – ↷ Page moved from v5:reference:completetrans to v5:reference:connection:completetrans mnewnhamv5:reference:connection:completetrans [2021/04/26 13:54] (current) – return bool instead of void as in source adodb.inc.php peterdd
Line 3: Line 3:
 <WRAP right box> <WRAP right box>
 == See Also == == See Also ==
-[[v5:reference:starttrans|startTrans()]]\\ +[[v5:reference:connection:starttrans|startTrans()]]\\ 
-[[v5:reference:failtrans|failTrans()]]\\+[[v5:reference:connection:failtrans|failTrans()]]\\
 [[v5:userguide:transactions|Managing Transaction With ADOdb]]\\ [[v5:userguide:transactions|Managing Transaction With ADOdb]]\\
  
 == Syntax == == Syntax ==
-  void completeTrans(+  bool completeTrans(
      optional bool $completeTrans=true      optional bool $completeTrans=true
      )      )
 </WRAP> </WRAP>
 ===== Description ===== ===== Description =====
-The method ''completeTrans()'' completes a **smart transaction**. If the value of $completeTrans is set to false, a rollback is forced.+The method ''completeTrans()'' completes a **smart transaction**. 
 + 
 +If the value of parameter $completeTrans is set to false, a rollback is forced. 
 + 
 +Returns true on commit, false on rollback. 
 ---------------------------------- ----------------------------------
 ===== Usage ===== ===== Usage =====
v5/reference/connection/completetrans.1452986396.txt.gz · Last modified: 2017/04/21 11:36 (external edit)