From: Mike Rylander Date: Thu, 30 Jan 2014 18:06:33 +0000 (-0500) Subject: We need to actually decode the json... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=67b92ea56177a41f22bf624fec6cfaf0dbf0e9da;p=working%2FEvergreen.git We need to actually decode the json... Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/sql/Pg/030.schema.metabib.sql b/Open-ILS/src/sql/Pg/030.schema.metabib.sql index 82ddcf90ce..411693d7b4 100644 --- a/Open-ILS/src/sql/Pg/030.schema.metabib.sql +++ b/Open-ILS/src/sql/Pg/030.schema.metabib.sql @@ -299,7 +299,7 @@ CREATE VIEW metabib.full_attr_id_map AS CREATE OR REPLACE FUNCTION metabib.compile_composite_attr ( cattr_def TEXT ) RETURNS query_int AS $func$ use JSON::XS; - my $def = shift; + my $def = decode_json(shift); die("Composite attribute definition not supplied") unless $def; diff --git a/Open-ILS/src/sql/Pg/upgrade/ZZZZ.function.composite_compiler.sql b/Open-ILS/src/sql/Pg/upgrade/ZZZZ.function.composite_compiler.sql index e98c8ea611..488c3625fa 100644 --- a/Open-ILS/src/sql/Pg/upgrade/ZZZZ.function.composite_compiler.sql +++ b/Open-ILS/src/sql/Pg/upgrade/ZZZZ.function.composite_compiler.sql @@ -3,7 +3,7 @@ BEGIN; CREATE OR REPLACE FUNCTION metabib.compile_composite_attr ( cattr_def TEXT ) RETURNS query_int AS $func$ use JSON::XS; - my $def = shift; + my $def = decode_json(shift); die("Composite attribute definition not supplied") unless $def;