Skip to content

Commit

Permalink
support driver.ErrSkip
Browse files Browse the repository at this point in the history
clients check for this specific error, same as io.EOF
  • Loading branch information
hectorj-thetreep authored Sep 4, 2023
1 parent b3b04d8 commit 7e3657d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion values.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ func parseValueWithType(valWithTyp string) (interface{}, error) {
if err != nil {
return nil, err
}
if s == "EOF" {
if s == driver.ErrSkip.Error() {
return driver.ErrSkip, nil
}
if s == io.EOF.Error() {
// Return reference to singleton object so that callers can compare
// by reference.
return io.EOF, nil
Expand Down

0 comments on commit 7e3657d

Please sign in to comment.