From e8db8d1bb24c6efa5a948b03f87325ebf4d85921 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Thu, 30 Jan 2014 13:06:33 -0500 Subject: [PATCH] We need to actually decode the json... Signed-off-by: Mike Rylander --- Open-ILS/src/sql/Pg/030.schema.metabib.sql | 2 +- Open-ILS/src/sql/Pg/upgrade/ZZZZ.function.composite_compiler.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.11.0