1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-03-19 06:07:48 +02:00

replaced empty slice literal with nil

This commit is contained in:
Gani Georgiev 2022-09-22 20:23:50 +03:00
parent 3d36ff7e96
commit ccc3707fb6

View File

@ -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 + "))")
}