MXS-2209: Use compound roles only with 10.2.15+

Due to MDEV-15556 and MDEV-15840 recursive CTEs can't be reliably used
with older 10.2 versions. To prevent problems, only use the query that
extracts composite roles with newer versions.
This commit is contained in:
Markus Mäkelä 2018-12-22 12:26:03 +02:00
parent 038f4d63e1
commit edd03e950f
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -160,7 +160,8 @@ static char* get_users_query(const char *server_version, int version, bool inclu
{
if (is_mariadb) // 10.1.1 or newer, supports default roles
{
return version >= 100202 ?
// Require 10.2.15 due to MDEV-15840 and MDEV-15556
return version >= 100215 ?
get_mariadb_102_users_query(include_root) :
get_mariadb_users_query(include_root);
}