alexbrainman / odbc

odbc driver written in go
BSD 3-Clause "New" or "Revised" License
352 stars 140 forks source link

Implement next result set2 #130

Closed wegged closed 5 years ago

wegged commented 5 years ago

The issue with #127 is not directly related this is based on that workaround in the thread but really per microsoft docs and statement that contains a select statement cannot be reused until we call SQLCloseCursor first. This seems to do the trick though and allows us to get the sum of the row counts.

alexbrainman commented 5 years ago

Just submitted your changes. I squashed your 2 commits into single commit to make it easier for future git history readers. Let me know, if you disagree with that.

Once again, thank you for pushing this along.

Alex