Closed MaceWindu closed 6 years ago
I think failure in #48 doesn't shutdown connection properly. In debugger I see that second test creates new connection and receive old connection from pool with state Closed. For such connections we call Open and then it fails
Yeah, in this case the InvalidCastException
causes the driver to not properly return the connection to the pool, so the next use of the pooled connection detects that it wasn't returned properly and reports it as broken (rather than try to use it).
However, internally we should be trying to RemoveAndReplace(connection)
, so something went wrong here too.
Fix will be:
RemoveAndReplace(connection)
wasn't happeningCan confirm that fix works
This error generated by next test after failure from #48, so I think it should be fixed prior to #48 while it should be easy to reproduce. Second test do following query:
linq2db test:
SybaseTests.TestTimeSpan
+SybaseTests.TestXml