Page MenuHomePhabricator

CAST AS INTEGER not supported by MySQL 5.6 and 5.7
Closed, ResolvedPublic

Description

Originally reported on mediawiki.org with this topic.

It appears that CAST AS INTEGER is not supported by MySQL 5.6 and 5.7 introduced with bcd6b2f732824d26a55ff3892442e143df7994a6

As a fix it is suggested to replace CAST(SUBSTRING(content_address, 4) AS INTEGER) = old_id' with 'CAST(SUBSTRING(content_address, 4) AS SIGNED) = old_id' in "/ReplaceTextSearch.php"

Event Timeline

Hi, thanks for opening this ticket. My teammate created a patch for this on gerrit.

The aforementioned patch has been merged. This issue can now be closed!

Kghbln closed this task as Resolved.EditedDec 20 2020, 7:27 AM
Kghbln assigned this task to HerrHulaHoop.

Thanks a ton. Probably an idea to back-port to 1.35.

Thanks a ton. Probably an idea to back-port to 1.35.

Yes please do, as example on the Extension talk page MW 1.35 Replace Text 1.4.1 many are trying to figure this out.