Due to the change in positional arguments, $2 is now $9; thankfully
PostgreSQL complained about the difference in types. Maybe an argument
for using argument names instead of positional identifiers? :)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
SELECT XMLELEMENT(
name circ,
XMLATTRIBUTES(
- CASE WHEN $2 THEN 'http://open-ils.org/spec/holdings/v1' ELSE NULL END AS xmlns,
+ CASE WHEN $9 THEN 'http://open-ils.org/spec/holdings/v1' ELSE NULL END AS xmlns,
'tag:open-ils.org:U2@circ/' || id AS id,
xact_start,
due_date