LP#1886852: Protect against dupes in hold-copy map function user/dyrcona/lp-1886852-non-unique-hold-copy-map-signoff
authorMike Rylander <mrylander@gmail.com>
Wed, 8 Jul 2020 17:18:52 +0000 (13:18 -0400)
committerJason Stephenson <jason@sigio.com>
Thu, 9 Jul 2020 19:54:00 +0000 (15:54 -0400)
commitba529e9a263da97368ae4cf1a63d3d089cbced05
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>
Signed-off-by: Jason Stephenson <jason@sigio.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]