Skip to content

Commit

Permalink
Updating example.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiam committed May 15, 2013
1 parent 3008fb2 commit 996aab4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions mysql/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,14 @@ func TestFind(t *testing.T) {

for {
err = res.Next(&dst5)
if err != nil {
if err == nil {
if dst5.PersonName == "José" {
found = true
}
} else if err == db.ErrNoMoreRows {
break
}
if dst5.PersonName == "José" {
found = true
} else {
t.Fatalf(err.Error())
}
}

Expand Down

0 comments on commit 996aab4

Please sign in to comment.