Fix mysql specifc cast on signed with Database::buildIntegerCast

Bug: T280102
Follow-Up: Ia84f135a8699fdc6cff6877c31fae1d46bf84f97
Change-Id: Ie8fc9fd8080e552c0b466472431e2c7143f8c7b0
(cherry picked from commit 0a73008353)
This commit is contained in:
Umherirrender 2021-05-16 22:12:33 +02:00
parent ceb3b42000
commit 1bc2235b72

View file

@ -51,7 +51,7 @@ class ReplaceTextSearch {
'rev_id = page_latest',
'rev_id = slot_revision_id',
'slot_content_id = content_id',
'CAST(SUBSTR(content_address, 4) AS SIGNED) = old_id'
$dbr->buildIntegerCast( 'SUBSTR(content_address, 4)' ) . ' = old_id'
];
self::categoryCondition( $category, $tables, $conds );