migrateAflFilter: Add missing quotes to raw value in a DB query

Change-Id: I365407eaa02bc57a25db9fa64157c3f3f54398e0
This commit is contained in:
Daimona Eaytoy 2020-12-09 09:26:25 +01:00
parent ee93ee7ded
commit 97cf7df3fa

View file

@ -100,7 +100,8 @@ class MigrateAflFilter extends LoggedUpdateMaintenance {
$dbw->addQuotes( '' )
) );
$globalSQL = $dbw->buildIntegerCast(
'(' . $dbw->buildSubstring( 'afl_filter', 1, strlen( $globalPrefix ) ) . " = $globalPrefix )"
'(' . $dbw->buildSubstring( 'afl_filter', 1, strlen( $globalPrefix ) ) . ' = ' .
$dbw->addQuotes( $globalPrefix ) . ' )'
);
$dbw->update(