We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f88ddd5 commit 4150a80Copy full SHA for 4150a80
internal/dinosql/parser.go
@@ -990,8 +990,12 @@ func (p *paramSearch) Visit(node nodes.Node) Visitor {
990
p.parent = node
991
992
case nodes.SelectStmt:
993
- p.limitCount = n.LimitCount
994
- p.limitOffset = n.LimitOffset
+ if n.LimitCount != nil {
+ p.limitCount = n.LimitCount
995
+ }
996
+ if n.LimitOffset != nil {
997
+ p.limitOffset = n.LimitOffset
998
999
1000
case nodes.TypeCast:
1001
0 commit comments