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:07:22 +0000 (07:07 -0400)
commit53b9deca88551f8d32985949436a8433a88ef502
tree9870bd322ea009f5fa9063d502f68e972b749dc9
parent433059d7aac834be9c893491a14353ed996db48b
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]