Hi again, I just found out that this has actually been fixed upstream almost two years ago, but no new versions have been released since then, and therefore the bug is still in Debian.
See here: https://sourceforge.net/p/libdbi-drivers/libdbi-drivers/ci/24f48b86c8988ee3aaebc5f303d71e9d789f77b6/ That fix is simpler than mine. Ruben