Skip to content

Commit

Permalink
update gorm 1.24.0 & golang 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
nfjBill committed Oct 20, 2022
1 parent d98ff7b commit 86e8e7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dm.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ func (d Dialector) RewriteLimit(c clause.Clause, builder clause.Builder) {
builder.WriteString(strconv.Itoa(offset))
builder.WriteString(" ROWS")
}
if limit := limit.Limit; limit > 0 {
if limit := limit.Limit; *limit > 0 {
builder.WriteString(" FETCH NEXT ")
builder.WriteString(strconv.Itoa(limit))
builder.WriteString(strconv.Itoa(*limit))
builder.WriteString(" ROWS ONLY")
}
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/golang/snappy v0.0.1
github.com/thoas/go-funk v0.9.1
golang.org/x/text v0.3.2
gorm.io/gorm v1.23.1
gorm.io/gorm v1.24.0
)

require (
Expand Down

0 comments on commit 86e8e7b

Please sign in to comment.