crystal-lang / crystal-mysql

MySQL connector for Crystal
MIT License
107 stars 36 forks source link

DB::PoolRetryAttemptsExceeded / DB::PoolTimeout #40

Closed crisward closed 5 years ago

crisward commented 7 years ago

I've created a small repo here to explain and recreate the bug

https://github.com/crisward/mysql_bug

This may be a bug in the connection pool of crystal-db, but I have no idea how to recreate it in a test without a concrete db driver. Also it could be mysql driver bug. Either way, hope this helps.

crisward commented 7 years ago

Just to clarify, this doesn't happen with result errors, ie no rows. Only on errors created from building an invalid prepared query.

crisward commented 7 years ago

Ok I think I have a fix for this in crystal-db

greenbigfrog commented 5 years ago

I think this could be closed now, since the PR has been merged into crystal-db

crisward commented 5 years ago

Good point.