Skip to content

Commit

Permalink
chore: debug statement mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
atzoum committed Oct 8, 2024
1 parent f11118d commit 1922569
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sqlconnect/internal/redshift/driver/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ func (c *redshiftConnection) wait(ctx context.Context, id *string) (output *reds
output = nil
return true
}
if *output.Id != *id {
panic(fmt.Errorf("asked to describe statement %q, but got answer for %q: %+v", *id, *output.Id, output))

Check warning on line 317 in sqlconnect/internal/redshift/driver/connection.go

View check run for this annotation

Codecov / codecov/patch

sqlconnect/internal/redshift/driver/connection.go#L317

Added line #L317 was not covered by tests
}
if isFinishedStatus(output.Status) {
return true
}
Expand Down

0 comments on commit 1922569

Please sign in to comment.