projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SearchKit - Pick better default for aggregate functions
[civicrm-core.git]
/
Civi
/
Api4
/
Query
/
SqlFunctionAVG.php
diff --git
a/Civi/Api4/Query/SqlFunctionAVG.php
b/Civi/Api4/Query/SqlFunctionAVG.php
index 44ff3b0720ca2c17d6f004a1f1c3b4ca68e0b719..d385b29eb95f0b893820bb9bd2617d25fbdccc52 100644
(file)
--- a/
Civi/Api4/Query/SqlFunctionAVG.php
+++ b/
Civi/Api4/Query/SqlFunctionAVG.php
@@
-18,6
+18,8
@@
class SqlFunctionAVG extends SqlFunction {
protected static $category = self::CATEGORY_AGGREGATE;
+ protected static $dataType = 'Float';
+
protected static function params(): array {
return [
[