LP#1886852: Protect against dupes in hold-copy map function user/miker/lp-1886852-non-unique-hold-copy-map
authorMike Rylander <mrylander@gmail.com>
Wed, 8 Jul 2020 17:18:52 +0000 (13:18 -0400)
committerMike Rylander <mrylander@gmail.com>
Wed, 8 Jul 2020 17:18:52 +0000 (13:18 -0400)
commit87ef9a9b404d811183d7c8aa0a8fb13913576922
tree7201fb3bdb2451046dcf0b5efb54477de27050f0
parentc99833f1021fcb425975a4170b55f223fee5ee57
LP#1886852: Protect against dupes in hold-copy map function

If the DB function that regenerates the hold-copy maps for a hold
receives duplicate copies in its second parameter, it blows up.  This
commit prevents that by making the list unique at use time.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/090.schema.action.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.function.distinct-regen_copy_map.sql [new file with mode: 0755]