Skip to content

Fix handling of queries without columns and rows #255

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

Merged
merged 2 commits into from
Aug 13, 2014

Conversation

arnehormann
Copy link
Member

Empty queries are disallowed by MySQL, but a comment can be sent as a query.
The call to mc.readUntilEOF() in rows.Close() causes a hangup.
As this case can be intercepted beforehand and doesn't require additional handling in the fastpath this way, I introduced a new type.

Fixes #253

@julienschmidt
Copy link
Member

LGTM (& I'm back)

@arnehormann
Copy link
Member Author

YAY!

@arnehormann arnehormann closed this Aug 8, 2014
@arvenil
Copy link
Contributor

arvenil commented Aug 13, 2014

Hmmm... so why is this closed, not merged?

@arnehormann arnehormann reopened this Aug 13, 2014
arnehormann added a commit that referenced this pull request Aug 13, 2014
Fix handling of queries without columns and rows
@arnehormann arnehormann merged commit 105a8fd into go-sql-driver:master Aug 13, 2014
@arnehormann
Copy link
Member Author

Very observant.
Because my last merge was some time ago and I semi-automatically clicked the wrong button.
Thanks!

@arnehormann arnehormann deleted the result-without-columns branch August 13, 2014 16:21
@arvenil
Copy link
Contributor

arvenil commented Aug 14, 2014

Thanks! :)

@julienschmidt julienschmidt added this to the v1.3 milestone Dec 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Driver hangs on Next() with some tricky MySQL query
3 participants