Hi! I have this now as https://salsa.debian.org/mariadb-team/mariadb-10.3/-/merge_requests/36 and I also sent it upstream at https://github.com/mariadb-corporation/mariadb-connector-c/pull/219. You can +1 these if you want to increase the odds of them being merged.
If somebody wants to make a bug report upstream at jira.mariadb.org it would help, in particular if you can find any other library than just libqt5sql5-mysql that is affected by this.