What steps will reproduce the problem?
create type acomp as (x int, y text, z timestamptz);
do language plv8 $$ var jres = plv8.execute("select
$1::acomp[]",[[{"x":2,"z":null,"y":null}]]);
plv8.elog(NOTICE,JSON.stringify(jres));$$;
What is the expected output? What do you see instead?
Should get:
NOTICE: [{"acomp":[{"x":2,"y":null,"z":null}]}]
Instead get:
ERROR: Error: malformed record literal: "[object Object]"
Suggested fix is at:
https://bitbucket.org/adunstan/plv8js/commits/1a09219c0842efcc1e96fdfe74442d2a2b
244b94
Please use labels and text to provide additional information.
Original issue reported on code.google.com by AMDuns...@gmail.com on 21 Feb 2013 at 3:47
Original issue reported on code.google.com by
AMDuns...@gmail.com
on 21 Feb 2013 at 3:47