Fix detection of Percona Server and MariaDB versions for the PARTITION hint