mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Revert "Use string cast for Postgres compatibility"
This reverts commit 4ab12305f1
.
Bug: T221357
Change-Id: Id0f26f48ad9904e73a8b65d76586957c2be93e82
This commit is contained in:
parent
4ab12305f1
commit
9a315f2a6e
|
@ -97,12 +97,11 @@ class ApiQueryAbuseLog extends ApiQueryBase {
|
|||
$this->addFieldsIf( 'afl_actions', $fld_result );
|
||||
$this->addFieldsIf( 'afl_wiki', $fld_wiki );
|
||||
|
||||
$db = $this->getDB();
|
||||
if ( $fld_filter ) {
|
||||
$this->addTables( 'abuse_filter' );
|
||||
$this->addFields( 'af_public_comments' );
|
||||
$this->addJoinConds( [ 'abuse_filter' => [ 'LEFT JOIN',
|
||||
$db->buildStringCast( 'af_id' ) . '=afl_filter' ] ] );
|
||||
'af_id=afl_filter' ] ] );
|
||||
}
|
||||
|
||||
$this->addOption( 'LIMIT', $params['limit'] + 1 );
|
||||
|
|
|
@ -45,7 +45,7 @@ class AbuseLogPager extends ReverseChronologicalPager {
|
|||
[ 'abuse_filter' =>
|
||||
[
|
||||
'LEFT JOIN',
|
||||
$this->mDb->buildStringCast( 'af_id' ) . '=afl_filter',
|
||||
'af_id=afl_filter',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
|
@ -282,7 +282,7 @@ class SpecialAbuseLog extends SpecialPage {
|
|||
[ 'afl_id' => $id ],
|
||||
__METHOD__,
|
||||
[],
|
||||
[ 'abuse_filter' => [ 'LEFT JOIN', $dbr->buildStringCast( 'af_id' ) . '=afl_filter' ] ]
|
||||
[ 'abuse_filter' => [ 'LEFT JOIN', 'af_id=afl_filter' ] ]
|
||||
);
|
||||
|
||||
if ( !$row ) {
|
||||
|
@ -511,7 +511,7 @@ class SpecialAbuseLog extends SpecialPage {
|
|||
[ 'afl_id' => $id ],
|
||||
__METHOD__,
|
||||
[],
|
||||
[ 'abuse_filter' => [ 'LEFT JOIN', $dbr->buildStringCast( 'af_id' ) . '=afl_filter' ] ]
|
||||
[ 'abuse_filter' => [ 'LEFT JOIN', 'af_id=afl_filter' ] ]
|
||||
);
|
||||
|
||||
if ( !$row ) {
|
||||
|
@ -649,7 +649,7 @@ class SpecialAbuseLog extends SpecialPage {
|
|||
[ 'afl_id' => $id ],
|
||||
__METHOD__,
|
||||
[],
|
||||
[ 'abuse_filter' => [ 'LEFT JOIN', $dbr->buildStringCast( 'af_id' ) . '=afl_filter' ] ]
|
||||
[ 'abuse_filter' => [ 'LEFT JOIN', 'af_id=afl_filter' ] ]
|
||||
);
|
||||
|
||||
if ( !$row ) {
|
||||
|
|
Loading…
Reference in a new issue