Fix MySQL invalid syntax regression from bcd6b2f7

Casting "AS INTEGER" is not valid MySQL syntax. You have to cast "AS
SIGNED" or "AS UNSIGNED".

Change-Id: Ia84f135a8699fdc6cff6877c31fae1d46bf84f97
(cherry picked from commit 286c538e6f)
This commit is contained in:
AniLeo 2020-10-02 08:43:16 +01:00 committed by Majavah
parent 51230b913f
commit feb8a9ce7f

View file

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