Skip to content

remove eof field from mysqlRows #146

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
Oct 30, 2013

Conversation

arnehormann
Copy link
Member

eof in mysqlRows is not necessary.
The rows reached io.EOF when mc == nil, the packet is incomplete (because the connection was closed) when mc.netConn == nil.

I'm planning on issuing followup PRs, but I want to keep them small and reviewable, so we'll start with this.

@arnehormann arnehormann reopened this Oct 30, 2013
@arnehormann
Copy link
Member Author

clicked the wrong button 😢

return errInvalidConn
}

var err error
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has no advantage over a named return value

@julienschmidt
Copy link
Member

LGTM

arnehormann added a commit that referenced this pull request Oct 30, 2013
remove eof field from mysqlRows
@arnehormann arnehormann merged commit cd6b009 into go-sql-driver:master Oct 30, 2013
@arnehormann arnehormann deleted the cleanup-rows branch October 30, 2013 17:22
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.

2 participants