mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-12-04 19:18:12 +00:00
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:
parent
ceb3b42000
commit
1bc2235b72
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue