Skip to content

Commit

Permalink
fix: allow LIMIT 0 for SELECT queries
Browse files Browse the repository at this point in the history
  • Loading branch information
ygabuev committed Oct 19, 2023
1 parent 8a43835 commit c7048ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query_select.go
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ func (q *SelectQuery) appendQuery(
b = append(b, " ROWS"...)
}
} else {
if q.limit > 0 {
if q.limit >= 0 {
b = append(b, " LIMIT "...)
b = strconv.AppendInt(b, int64(q.limit), 10)
}
Expand Down

0 comments on commit c7048ad

Please sign in to comment.