Skip to content

Commit e116aa6

Browse files
authored
Merge pull request #2977 from dolthub/zachmu/offset
Bug fix for offset without limit
2 parents 5d72488 + a3ce9a4 commit e116aa6

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)