migrateAflFilter: fix DB substring usage

Indexes are 1-based for all DBMSs we support.

Change-Id: Ida4b2bf972d224b386b65d84807d532d33db8c95
This commit is contained in:
Daimona Eaytoy 2020-12-09 02:30:03 +01:00
parent f41fe76df7
commit d16dde9a74

View file

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