We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1007940 commit 22036f5Copy full SHA for 22036f5
sqlite.go
@@ -101,7 +101,7 @@ func (dialector Dialector) ClauseBuilders() map[string]clause.ClauseBuilder {
101
if limit.Limit != nil && *limit.Limit >= 0 {
102
lmt = *limit.Limit
103
}
104
- if lmt > 0 || limit.Offset > 0 {
+ if lmt >= 0 || limit.Offset > 0 {
105
builder.WriteString("LIMIT ")
106
builder.WriteString(strconv.Itoa(lmt))
107
0 commit comments