mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
migrateAflFilter: fix DB substring usage
Indexes are 1-based for all DBMSs we support. Change-Id: Ida4b2bf972d224b386b65d84807d532d33db8c95
This commit is contained in:
parent
f41fe76df7
commit
d16dde9a74
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue