mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-12 01:07:27 +02:00
replaced empty slice literal with nil
This commit is contained in:
1 parent
3d36ff7e96
commit
ccc3707fb6
1 file changed
+1
-1
@@ -199,7 +199,7 @@ func (s *Provider) Exec(items any) (*Result, error) {
|
||||
// count
|
||||
var totalCount int64
|
||||
countQuery := modelsQuery
|
||||
countQuery.Distinct(false).Select("COUNT(*)").OrderBy([]string{}...) // unset ORDER BY statements
|
||||
countQuery.Distinct(false).Select("COUNT(*)").OrderBy(nil...) // unset ORDER BY statements
|
||||
if s.countColumn != "" {
|
||||
countQuery.Select("COUNT(DISTINCT(" + s.countColumn + "))")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user