Skip to content

Commit

Permalink
Merge branch 'go-gorm:master' into orig
Browse files Browse the repository at this point in the history
  • Loading branch information
glebarez committed Mar 23, 2022
2 parents 33b0d89 + 9ec45b1 commit 481d58a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2.2.0
uses: actions/setup-go@v3
with:
go-version: 1.14
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v3
- name: Test
run: go test -v -cover .
6 changes: 4 additions & 2 deletions sqlite.go
Expand Up @@ -101,10 +101,12 @@ func (dialector Dialector) ClauseBuilders() map[string]clause.ClauseBuilder {
if limit.Limit <= 0 {
limit.Limit = -1
}
builder.WriteString("LIMIT " + strconv.Itoa(limit.Limit))
builder.WriteString("LIMIT ")
builder.WriteString(strconv.Itoa(limit.Limit))
}
if limit.Offset > 0 {
builder.WriteString(" OFFSET " + strconv.Itoa(limit.Offset))
builder.WriteString(" OFFSET ")
builder.WriteString(strconv.Itoa(limit.Offset))
}
}
},
Expand Down

0 comments on commit 481d58a

Please sign in to comment.