Skip to content

Commit

Permalink
Fix NULLIF argument in holdings_electronic_access
Browse files Browse the repository at this point in the history
  • Loading branch information
nassibnassar committed Jul 3, 2024
1 parent d9f1daa commit 55b4e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/derived_tables/holdings_electronic_access.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ FROM
inventory_holdings AS holdings
CROSS JOIN jsonb_array_elements((data #> '{electronicAccess}')::jsonb) AS electronic_access(data)
LEFT JOIN inventory_electronic_access_relationships
ON NULLIF(electronic_access.data #>> '{relationshipId}'))::uuid = inventory_electronic_access_relationships.id::uuid;
ON NULLIF(electronic_access.data #>> '{relationshipId}', '')::uuid = inventory_electronic_access_relationships.id::uuid;

0 comments on commit 55b4e81

Please sign in to comment.