Skip to content

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 😢

rows.go Outdated
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