Skip to content

Commit

Permalink
Check for empty string UUID in instance_formats
Browse files Browse the repository at this point in the history
  • Loading branch information
nassibnassar committed Mar 25, 2024
1 parent cb4256b commit 689b16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql_metadb/derived_tables/instance_formats.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WITH instances AS (
SELECT
i.id AS instance_id,
jsonb_extract_path_text(i.jsonb, 'hrid') AS instance_hrid,
(instance_format_ids.jsonb #>> '{}')::uuid AS instance_format_id,
NULLIF(instance_format_ids.jsonb #>> '{}', '')::uuid AS instance_format_id,
instance_format_ids.ordinality AS instance_format_ordinality
FROM
folio_inventory.instance AS i
Expand Down

0 comments on commit 689b16d

Please sign in to comment.