Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 9108273

Browse files
Fix error returning in parsing function maybeList
Signed-off-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
1 parent c2de021 commit 9108273

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sql/parse/util.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,7 @@ func maybeList(opening, separator, closing rune, list *[]string) parseFunc {
483483
}
484484

485485
if r != opening {
486-
rd.UnreadRune()
487-
return nil
486+
return rd.UnreadRune()
488487
}
489488

490489
for {

0 commit comments

Comments
 (0)