Skip to content

Commit a3ce9a4

Browse files
committed
Bug fix for offset without limit
1 parent 0362674 commit a3ce9a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/planbuilder/select.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (b *Builder) buildSelect(inScope *scope, s *ast.Select) (outScope *scope) {
127127
}
128128

129129
func (b *Builder) buildLimit(inScope *scope, limit *ast.Limit) sql.Expression {
130-
if limit != nil {
130+
if limit != nil && limit.Rowcount != nil {
131131
return b.buildLimitVal(inScope, limit.Rowcount)
132132
}
133133
return nil

0 commit comments

Comments
 (0)