From 7e3657d056c4654504a78e10f7b5aaaa47cf2928 Mon Sep 17 00:00:00 2001 From: Hector Jusforgues <134286056+hectorj-thetreep@users.noreply.github.com> Date: Mon, 4 Sep 2023 13:03:05 +0200 Subject: [PATCH] support driver.ErrSkip clients check for this specific error, same as io.EOF --- values.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/values.go b/values.go index e0727ad..4403eea 100644 --- a/values.go +++ b/values.go @@ -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