LP#1886852: Protect against dupes in hold-copy map function
authorMike Rylander <mrylander@gmail.com>
Wed, 8 Jul 2020 17:18:52 +0000 (13:18 -0400)
committerJason Stephenson <jason@sigio.com>
Fri, 17 Jul 2020 11:13:23 +0000 (07:13 -0400)
commita78747a609f3db4b557bb2305cb85d9c0adc9b79
treee340467dabde4c73f7f15e6d7aa7cb4ce0c092c1
parentf043d0180c10d7fffc8c65e87d2527c582f7b5ea
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]