1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-02-03 18:02:17 +02:00

remove OrderBy nil variadic argument

This commit is contained in:
Gani Georgiev 2022-09-22 20:35:20 +03:00
parent ccc3707fb6
commit 6c005c4a9a

View File

@ -199,7 +199,7 @@ func (s *Provider) Exec(items any) (*Result, error) {
// count // count
var totalCount int64 var totalCount int64
countQuery := modelsQuery countQuery := modelsQuery
countQuery.Distinct(false).Select("COUNT(*)").OrderBy(nil...) // unset ORDER BY statements countQuery.Distinct(false).Select("COUNT(*)").OrderBy() // unset ORDER BY statements
if s.countColumn != "" { if s.countColumn != "" {
countQuery.Select("COUNT(DISTINCT(" + s.countColumn + "))") countQuery.Select("COUNT(DISTINCT(" + s.countColumn + "))")
} }