Skip to content

Commit

Permalink
Merge pull request #66 from glebarez/orig
Browse files Browse the repository at this point in the history
Merge upstream
  • Loading branch information
glebarez committed Oct 15, 2022
2 parents af7e308 + 02ba8bc commit 9ca99e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,3 @@ Well, it's slower than CGo implementation, but not terribly. See the [bechmark o
## Included features
- JSON1 (https://www.sqlite.org/json1.html)
- Math functions (https://www.sqlite.org/lang_mathfunc.html)

2 changes: 1 addition & 1 deletion sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (dialector Dialector) ClauseBuilders() map[string]clause.ClauseBuilder {
if limit.Limit != nil && *limit.Limit >= 0 {
lmt = *limit.Limit
}
if lmt > 0 || limit.Offset > 0 {
if lmt >= 0 || limit.Offset > 0 {
builder.WriteString("LIMIT ")
builder.WriteString(strconv.Itoa(lmt))
}
Expand Down

0 comments on commit 9ca99e9

Please sign in to comment.