Skip to content

Commit

Permalink
fix jsonb concat operator
Browse files Browse the repository at this point in the history
it is stipped away if not behind other instructions
  • Loading branch information
zingmane committed May 15, 2024
1 parent 041655e commit 3098961
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1440,8 +1440,7 @@ class RetrieveRowModel(val connection: DatabaseConnection)(
|(SELECT
| lt$linkId.${direction.fromSql} AS ${direction.fromSql},
| (
| jsonb_build_object('id', ut$toTableId.id, 'value', $value)
| ||
| jsonb_build_object('id', ut$toTableId.id, 'value', $value) ||
| jsonb_strip_nulls(
| jsonb_build_object(
| 'final', CASE WHEN ut$toTableId.final IS TRUE THEN ut$toTableId.final ELSE NULL END,
Expand Down

0 comments on commit 3098961

Please sign in to comment.