Fixed READ_LOCKING bitfield check

Change-Id: Ia37761bc21a37cad4d8357b9cbfc623b59065a11
This commit is contained in:
Aaron 2012-08-22 12:18:42 -07:00
parent be7d3feab2
commit e5e3fbb6f5

View file

@ -319,7 +319,7 @@ class Revision implements IDBAccessObject {
self::selectUserFields()
);
$options = array( 'LIMIT' => 1 );
if ( $flags & self::READ_LOCKING ) {
if ( ( $flags & self::READ_LOCKING ) == self::READ_LOCKING ) {
$options[] = 'FOR UPDATE';
}
return $db->select(