Bug 13740: Fix null vs not null in the query

The previous patch did not work, only patrons *with* guanrantees were
deleted!

Signed-off-by: Koha Team AMU <koha.aixmarseille@gmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Jonathan Druart 2015-02-25 10:44:00 +01:00 committed by Tomas Cohen Arazi
parent b721b6f9f3
commit 316485b1c4

View file

@ -2124,7 +2124,7 @@ sub GetBorrowersToExpunge {
LEFT JOIN old_issues USING (borrowernumber)
LEFT JOIN issues USING (borrowernumber)
WHERE category_type <> 'S'
AND tmp.guarantorid IS NOT NULL
AND tmp.guarantorid IS NULL
|;
my @query_params;