Bug 30143: OAI-PMH: Fix SQL query used to fetch deleted records

The query was missing the "ORDER BY" and "LIMIT" clauses, which could make retrieve a wrong set of records.

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Ere Maijala 2022-02-21 16:07:00 +02:00 committed by Fridolin Somers
parent 00a73846c0
commit bf1ebfc092
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ sub GetRecords {
$sql = "
SELECT biblionumber
FROM $table main
WHERE $where
WHERE $where $order_limit
";
$ts_sql = "SELECT max(timestamp) FROM $table WHERE biblionumber = ?";