Skip to content

Commit

Permalink
Return SnowflakeResult instead of driver.ResultNoRows
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pbulawa committed Nov 29, 2023
2 parents 61e84d1 + 922bfb7 commit a57b625
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions rows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,6 @@ func TestRowsClose(t *testing.T) {
})
}

func TestResultNoRows(t *testing.T) {
// DDL
runDBTest(t, func(dbt *DBTest) {
row, err := dbt.exec("CREATE OR REPLACE TABLE test(c1 int)")
if err != nil {
t.Fatalf("failed to execute DDL. err: %v", err)
}
if _, err = row.RowsAffected(); err == nil {
t.Fatal("should have failed to get RowsAffected")
}
if _, err = row.LastInsertId(); err == nil {
t.Fatal("should have failed to get LastInsertID")
}
})
}

func TestRowsWithoutChunkDownloader(t *testing.T) {
sts1 := "1"
sts2 := "Test1"
Expand Down

0 comments on commit a57b625

Please sign in to comment.