Skip to content

Commit

Permalink
Merge branch 'master' into ngaut/update-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaut committed Apr 1, 2016
2 parents 7f3eb23 + 8aa1055 commit aae1faa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ check:
@echo "vet"
@ go tool vet . 2>&1 | grep -vE 'Godeps|parser/scanner.*unreachable code' | awk '{print} END{if(NR>0) {exit 1}}'
@echo "vet --shadow"
@ go tool vet --shadow . 2>&1 | grep -vE 'Godeps' | awk '{print} END{if(NR>0) {exit 1}}'
@ go tool vet --shadow . 2>&1 | grep -vE 'Godeps|parser/parser.go|parser/scanner.go' | awk '{print} END{if(NR>0) {exit 1}}'
@echo "golint"
@ $(GOLINT) ./... 2>&1 | grep -vE 'LastInsertId|NewLexer|\.pb\.go' | awk '{print} END{if(NR>0) {exit 1}}'
@echo "gofmt (simplify)"
Expand Down
6 changes: 3 additions & 3 deletions tidb-server/server/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,14 +411,14 @@ func (cc *clientConn) writeResultset(rs ResultSet, binary bool) error {
columnLen := dumpLengthEncodedInt(uint64(len(columns)))
data := cc.alloc.AllocWithLen(4, 1024)
data = append(data, columnLen...)
if err := cc.writePacket(data); err != nil {
if err = cc.writePacket(data); err != nil {
return errors.Trace(err)
}

for _, v := range columns {
data = data[0:4]
data = append(data, v.Dump(cc.alloc)...)
if err := cc.writePacket(data); err != nil {
if err = cc.writePacket(data); err != nil {
return errors.Trace(err)
}
}
Expand Down Expand Up @@ -457,7 +457,7 @@ func (cc *clientConn) writeResultset(rs ResultSet, binary bool) error {
}
}

if err := cc.writePacket(data); err != nil {
if err = cc.writePacket(data); err != nil {
return errors.Trace(err)
}
row, err = rs.Next()
Expand Down

0 comments on commit aae1faa

Please sign in to comment.