odbc icon indicating copy to clipboard operation
odbc copied to clipboard

Remove error check after result is obtained

Open popeliv opened this issue 1 year ago • 0 comments

Fixes #199.

It looks like what was happening here is that the context was getting cancelled while the goroutine execution was between lines 148 and 152.

After the result gets sent on rowsChan, the QueryContext function returns before line 153 is reached and errorChan gets closed.

I don't know how write a test to reproduce this bug, but according to the issue, line 153 was causing the panic so this should fix it.

Apart from that every test still passes.

popeliv avatar Sep 04 '24 18:09 popeliv