LP1837294: Fix Sample Data Load Predictability Issue
authorJason Stephenson <jason@sigio.com>
Mon, 15 Nov 2021 19:21:17 +0000 (14:21 -0500)
committerJason Boyer <JBoyer@equinoxOLI.org>
Fri, 19 Nov 2021 16:09:44 +0000 (11:09 -0500)
commit89d9edcd47b74ff1e1d23244af5837c7875095f5
tree77c6a6d3de2e946c9d1c06b6dff520d058edee71
parentba8e1554c1ae1bc9d4231ef3e5072ba6abe5cc8d
LP1837294: Fix Sample Data Load Predictability Issue

Add "ORDER BY id" to the main queries in the functions used to create
call numbers and copies when loading the sample data.  This change
allows the call numbers and copies to be created in a predictable
manner.

The necessity of this change was revealed by the failure of the
20-hold-targeter.t Perl live test on PostgreSQL 11+.  After this
change, that test passes on newer PostgreSQL versions and continues to
pass on PostgreSQL 10.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/tests/datasets/sql/env_create.sql