This also affects MariaDB 5.5, so the released fix is too specific:
"AND NOT VERSION() LIKE '10.%MariaDB%'");
You could either just drop the "10." prefix, so that it matches all MariaDBs, or perhaps switch to an RLIKE that matches more versions:
"AND NOT VERSION() RLIKE '^(5|10)\..*MariaDB'");
This also affects MariaDB 5.5, so the released fix is too specific:
You could either just drop the "10." prefix, so that it matches all MariaDBs, or perhaps switch to an RLIKE that matches more versions: