Fix build with MariaDB 10.2.
PR: 223424 Submitted by: brnrd Reported by: Matthias Fechner Sponsored by: Absolight