wordpress-seo
wordpress-seo copied to clipboard
MariaDB incompatible query
https://github.com/Yoast/wordpress-seo/blob/a2903680a2a3e58802fb2a398f96ba7d6a2b89a4/inc/sitemaps/class-post-type-sitemap-provider.php#L120
The version check may pass for MariaDB, but the query inside the 'if' statement is not compatible with MariaDB
Hi @skyycode
Thanks for using the Yoast SEO plugin and reporting the issue you noticed with MariaDB.
I have forwarded this internally to the appropriate development team, and we will keep you posted on this soon.
Looking deeper into the usage of db_version(), the ROW_NUMBER() window function is supported only since MariaDB 10.2: this means that versions 10.0 and 10.1 may fail.
So besides changing the method we may need to check whether MariaDB is used and adjust the check accordingly