To match documentation
Change-Id: I7ee69fcd90ba1cba947ca2ef205f350dc456a2c7
list( $db, $options ) = \DBAccessObjectUtils::getDBOptions( $flags );
return (bool)wfGetDB( $db )->selectField(
[ 'user' ],
- [ 'user_id' ],
+ 'user_id',
[ 'user_name' => $username ],
__METHOD__,
$options
list( $db, $options ) = \DBAccessObjectUtils::getDBOptions( $flags );
return (bool)wfGetDB( $db )->selectField(
[ 'user' ],
- [ 'user_id' ],
+ 'user_id',
[ 'user_name' => $username ],
__METHOD__,
$options
}
$newCount = (int)$dbw->selectField(
'user',
- [ 'user_editcount' ],
+ 'user_editcount',
[ 'user_id' => $userId ],
$fname
);
function getTotalAutoblocks() {
$dbr = $this->getDatabase();
$res = $dbr->selectField( 'ipblocks',
- [ 'COUNT(*) AS totalautoblocks' ],
+ 'COUNT(*)',
[
'ipb_auto' => '1',
'ipb_expiry >= ' . $dbr->addQuotes( $dbr->timestamp() ),