mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-24 06:43:35 +00:00
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:
parent
51230b913f
commit
feb8a9ce7f
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue