vapor / mysql-nio

🐬 Non-blocking, event-driven Swift client for MySQL.
MIT License
87 stars 28 forks source link

Fix statement close on error #32

Closed tanner0101 closed 4 years ago

tanner0101 commented 4 years ago

Fixes a bug causing query statements to not be cleaned up (closed) if an error was thrown in the onRow callback (#32, fixes https://github.com/vapor/mysql-nio/issues/30).

tanner0101 commented 4 years ago

I was able to successfully recreate the error in the new test case.

tanner0101 commented 4 years ago

These changes are now available in 1.0.0-rc.2.3