#195 port to mariadb 10.0.9