APIv4 - Preserve field data type when aggregating into an array using GROUP_CONCAT
authorColeman Watts <coleman@civicrm.org>
Tue, 15 Jun 2021 06:22:08 +0000 (02:22 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 15 Jun 2021 10:56:20 +0000 (06:56 -0400)
commit259207d064db3dbd7a8cd85d1dda84192a66b5a5
treea5a083e0ab9239c8813c91d6555b8556e0f7ea0d
parentbebdb7f4c5c0f26bd11e014625e7df176b163933
APIv4 - Preserve field data type when aggregating into an array using GROUP_CONCAT

Ensures that e.g. an array of integer fields will be returned as integers and not an array of strings
Civi/Api4/Query/SqlFunctionCOUNT.php
Civi/Api4/Query/SqlFunctionGROUP_CONCAT.php
Civi/Api4/Utils/FormattingUtil.php
tests/phpunit/api/v4/Action/SqlFunctionTest.php