LP1937294: Fix Vandelay Item Import for Pg11+
authorJason Stephenson <jason@sigio.com>
Mon, 15 Nov 2021 20:39:15 +0000 (15:39 -0500)
committerJason Boyer <JBoyer@equinoxOLI.org>
Fri, 19 Nov 2021 16:10:05 +0000 (11:10 -0500)
commitcb0a9e858a2fbb432cb6901dfff26463692f1618
tree1f332f0d2b826cf98fd9355376f55955eccd7131
parent89d9edcd47b74ff1e1d23244af5837c7875095f5
LP1937294: Fix Vandelay Item Import for Pg11+

Modify the vandelay.ingest_items() function to use proper XPath format
for relative node searching.  This change was necessitated by a fix in
Pg 11's Xpath code:

 * Correctly handle relative path expressions in xmltable(), xpath(), and
   other XML-handling functions

The lp1379815_vl_import_item_stat_cats.pg PgTap regression test fails
on PostgreSQL 11+ if this patch is not applied and succeeds if it
does.  It still passes on PostgreSQL 10.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/sql/Pg/999.functions.global.sql