LP1937294: Fix Sample Data Load Predictability Issue
authorJason Stephenson <jason@sigio.com>
Mon, 15 Nov 2021 19:21:17 +0000 (14:21 -0500)
committerJason Stephenson <jason@sigio.com>
Thu, 17 Mar 2022 14:51:54 +0000 (10:51 -0400)
commit1292237615f9b640c8529dc70cb56cfb35367437
tree8757fd75d00c05e0ece8a4d997a2b7caff42d18a
parent66a87f7be2feedb7deb7ea7653dc2ddc48cf720b
LP1937294: 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