Repository navigation
Patch release with two driver fixes found during the deadlock and cancel audit follow-ups (#250). No API changes.
"dependencies": { "ddbc": "~>0.16.1" }Fixes
- Errors pass through the drivers (#269, PR #272).
- The MySQL, ODBC and SQLite drivers caught
Throwablein 54 places and rethrew it as anSQLException. AnErrorfrom a client library, such as a failed assert, then looked like an ordinary database error, and the possibly broken connection stayed in use or went back to a pool. Errors now reach the caller unchanged, and every exception is handled as before.- After an
Error, close the connection instead of returning it to a pool (README, "Errors").
- The MySQL, ODBC and SQLite drivers caught
- Drivers register once per process (#269).
- Every driver registered itself in a
__gshared static this(), which, likestatic this(), runs in every new thread. Each thread re-registered all drivers into the unlocked driver map while other threads could be reading it. - Drivers now register in
shared static this(),DriverFactoryguards its map with a lock, and the PGSQL driver loads libpq once under a lock. DriverFactory.registerDriverFactorymay be called from any thread.
- Every driver registered itself in a
Behaviour change
- MySQL JSON columns in debug builds. mysql-native 3.1, which ddbc uses, asserts on JSON columns (mysql-d/mysql-native#285).
- That assert used to arrive as
SQLNonTransientConnectionException: Unsupported SQL type 245. Now theAssertErrorreaches the caller. - A
-releasebuild already halted there, since mysql-native'sassert(false)stops the program. - The fix is in mysql-native upstream (#286), but not in a release yet. ddbc will move to it once it's released.
- That assert used to arrive as
Also
Full changelog: v0.16.0...v0.16.1
🤖 Generated with Claude Code