Closed AlexanderGeere closed 1 month ago
Noticed a bug in the sql
${jsonb_field} = coalesce(jsonb_field::jsonb,'{}'::jsonb)::jsonb || '{${updateObject.join(',')}}'::jsonb
The jsonb_field in the coalesce should also be ${jsonb_field} as we are trying to concatenate to the field.
jsonb_field
${jsonb_field}
I also added a stringify to the value so arrays can be in the JSON value.
Issues 0 New issues 0 Accepted issues
Measures 0 Security Hotspots No data about Coverage 0.0% Duplication on New Code
See analysis details on SonarCloud
Noticed a bug in the sql
The
jsonb_field
in the coalesce should also be${jsonb_field}
as we are trying to concatenate to the field.I also added a stringify to the value so arrays can be in the JSON value.