ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:activerecord:lockmode

Differences

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

Link to this comparison view

Next revision
Previous revision
activerecord:lockmode [2015/12/06 21:32] – created mnewnhamv5:activerecord:lockmode [2016/01/13 02:15] (current) – ↷ Links adapted because of a move operation mnewnham
Line 6: Line 6:
 </WRAP> </WRAP>
 ===== Description ===== ===== Description =====
-Setting the value of this class variable adds the value to SELECT statements executed by [[activerecord:load()]]. This value is the default for MySQL databases, but may need to be changed for others.+Setting the value of this class variable adds the value to SELECT statements executed by [[v5:activerecord:load]]. This value is the default for MySQL databases, but may need to be changed for others.
  
 ===== Usage ===== ===== Usage =====
Line 13: Line 13:
 class person extends ADOdb_Active_Record class person extends ADOdb_Active_Record
 { {
-    $lockMode = ' FOR UPDATE NOWAIT';+    public $lockMode = ' FOR UPDATE NOWAIT';
 } }
 </code> </code>
v5/activerecord/lockmode.txt · Last modified: 2016/01/13 02:15 by mnewnham