Skip to content

Commit

Permalink
adjust TestMSSQLNextResultSet so it passes on FreeTDS
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbrainman committed Jan 2, 2019
1 parent 9c610ee commit cf37ce2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mssql_test.go
Expand Up @@ -1787,14 +1787,14 @@ func TestMSSQLNextResultSet(t *testing.T) {
t.Fatal("more result sets expected")
}
checkName(rows, "brad")
if isFreeTDS() { // not sure why it does not work on FreeTDS
t.Log("skipping broken part of the test on FreeTDS")
return
}
if rows.NextResultSet() {
if !isFreeTDS() { // not sure why it does not work on FreeTDS
t.Fatal("unexpected result set found")
}
} else {
if err := rows.Err(); err != nil {
t.Fatal(err)
}
t.Fatal("unexpected result set found")
} else if err := rows.Err(); err != nil {
t.Fatal(err)
}
})
}
Expand Down

0 comments on commit cf37ce2

Please sign in to comment.