-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rows.Close() must not overwrite buffer #903
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I think avoiding one allocation for each query is too difficult. |
I've implemented a potential fix in #943 and discussed several other approaches which I believe are inferior to the one I'm proposing. Feedback is welcome. |
I created reproducer: https://gist.github.com/methane/418f872d788209116f8a5d08f756d838 To reproduce, we need to use |
Read these:
From Go 1.10, it's not allowed anymore. Maybe, it should be avoided from Go 1.9.
We should use another buffer...
This issue caused #902.
The text was updated successfully, but these errors were encountered: