mariadb 10 fix for https://github.com/rails/rails/issues/15931