Support MariaDB 10.0.10

Redmine: fixes #2460

Reported by Kazuhiko Shiozaki. Thanks!!!