Signed-off-by: Mike Rylander <mrylander@gmail.com>
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;
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;