mariadb: fix for issue #30891