diff --git a/goextVersion.go b/goextVersion.go index df297d5..7a1556c 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.389" +const GoextVersion = "0.0.390" -const GoextVersionTimestamp = "2024-02-21T16:10:28+0100" +const GoextVersionTimestamp = "2024-02-21T16:11:15+0100" diff --git a/sq/filter.go b/sq/filter.go index d04af70..fa6b97c 100644 --- a/sq/filter.go +++ b/sq/filter.go @@ -36,10 +36,10 @@ func NewPaginateFilter(sql func(params PP) (filterClause string, joinClause stri } } -func NewSimplePaginateFilter(filterClause string, params PP, sort []FilterSort) PaginateFilter { +func NewSimplePaginateFilter(filterClause string, filterParams PP, sort []FilterSort) PaginateFilter { return genericPaginateFilter{ - sql: func(params PP) (filterClause string, joinClause string, joinTables []string) { - params.AddAll(params) + sql: func(params PP) (string, string, []string) { + params.AddAll(filterParams) return filterClause, "", nil }, sort: func() []FilterSort {