diff --git a/README.md b/README.md index 805f658..a95b068 100644 --- a/README.md +++ b/README.md @@ -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) - diff --git a/sqlite.go b/sqlite.go index 4b42034..5f015b0 100644 --- a/sqlite.go +++ b/sqlite.go @@ -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)) }