mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
parent
bd18bf3c7d
commit
a64982f96c
2 changed files with 4 additions and 2 deletions
2
changes/issue-5319-json-arrayagg
Normal file
2
changes/issue-5319-json-arrayagg
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
* Remove usage of JSON_ARRAYAGG in sql queries. Not supported in MySQL < 5.7.22 and
|
||||
AWS RDS Aurora used in Terraform.
|
||||
|
|
@ -1672,13 +1672,13 @@ SELECT
|
|||
team_id id,
|
||||
'os_versions' type,
|
||||
COALESCE(
|
||||
JSON_ARRAYAGG(
|
||||
CONCAT('[', GROUP_CONCAT(
|
||||
JSON_OBJECT(
|
||||
'hosts_count', hosts_count,
|
||||
'name', name,
|
||||
'platform', platform
|
||||
)
|
||||
),
|
||||
), ']'),
|
||||
JSON_ARRAY()
|
||||
) json_value
|
||||
FROM
|
||||
|
|
|
|||
Loading…
Reference in a new issue