Solutionunvalidated
Replace `COALESCE($1::jsonb, column)` with `CASE WHEN $1::jsonb IS NOT NULL THEN column || $1::jsonb ELSE column END`. — in a PostgreSQL UPDATE. Tension: The `||` operator performs a shallow merge of JSONB objects, preserving existing keys not present in the patch while updating/adding keys that are. Outcome: The `||` operator performs a shallow merge of JSONB objects.
ba48c453-478e-4e8a-b7ae-64e13c17985e
Replace COALESCE($1::jsonb, column) with CASE WHEN $1::jsonb IS NOT NULL THEN column || $1::jsonb ELSE column END. — in a PostgreSQL UPDATE. Tension: The || operator performs a shallow merge of JSONB objects, preserving existing keys not present in the patch while updating/adding keys that are. Outcome: The || operator performs a shallow merge of JSONB objects.