]> git.evergreen-ils.org Git - Evergreen.git/commit
Fix located URI merging in action.merge_record_assets()
authorDan Scott <dscott@laurentian.ca>
Thu, 13 Oct 2011 15:49:45 +0000 (11:49 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 13 Oct 2011 19:53:53 +0000 (15:53 -0400)
commit9eff9a28b617f77b7cf488319b2f6e1399a8143e
tree535a39ac3ba17cda37dfa6f38e29444b9768e96b
parent28cd1266dd18fc1e81f110db2ca6e9a05155b9ff
Fix located URI merging in action.merge_record_assets()

Perhaps due to the unexpected results of the XPath expression, which
returns a count of nodes for subfields, etc, rather than just a count of
the number of 856 datafields, NULL was being concatenated onto a string
- which of course made the string NULL.

Use COALESCE() to prevent the NULLness from spreading and enable
action.merge_record_assets() to do the right thing.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/999.functions.global.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.asset_merge_record_assets.sql [new file with mode: 0644]