Skip to content

Commit

Permalink
Return ResultNoRows
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pbulawa committed Nov 28, 2023
1 parent 5c79db8 commit 922bfb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions statement.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (stmt *snowflakeStmt) ExecContext(ctx context.Context, args []driver.NamedV
}
r, ok := result.(SnowflakeResult)
if !ok {
return nil, fmt.Errorf("interface convertion. expected type SnowflakeResult but got %T", result)
return driver.ResultNoRows, nil
}
stmt.lastQueryID = r.GetQueryID()
return result, err
Expand Down Expand Up @@ -71,7 +71,7 @@ func (stmt *snowflakeStmt) Exec(args []driver.Value) (driver.Result, error) {
}
r, ok := result.(SnowflakeResult)
if !ok {
return nil, fmt.Errorf("interface convertion. expected type SnowflakeResult but got %T", result)
return driver.ResultNoRows, nil
}
stmt.lastQueryID = r.GetQueryID()
return result, err
Expand Down

0 comments on commit 922bfb7

Please sign in to comment.