replaced empty slice literal with nil
This commit is contained in:
		
							parent
							
								
									3d36ff7e96
								
							
						
					
					
						commit
						ccc3707fb6
					
				| 
						 | 
					@ -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([]string{}...) // unset ORDER BY statements
 | 
						countQuery.Distinct(false).Select("COUNT(*)").OrderBy(nil...) // unset ORDER BY statements
 | 
				
			||||||
	if s.countColumn != "" {
 | 
						if s.countColumn != "" {
 | 
				
			||||||
		countQuery.Select("COUNT(DISTINCT(" + s.countColumn + "))")
 | 
							countQuery.Select("COUNT(DISTINCT(" + s.countColumn + "))")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue