From 77b681b5843dabd8808e6ad3e62999f1e9421280 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Fri, 4 Oct 2019 12:02:59 +0200 Subject: [PATCH] Bug 23484: (follow-up) add parenthesis in JOIN Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize --- circ/pendingreserves.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/pendingreserves.pl b/circ/pendingreserves.pl index 983bfdf41f..9f62b28b22 100755 --- a/circ/pendingreserves.pl +++ b/circ/pendingreserves.pl @@ -214,7 +214,7 @@ my $strsth = LEFT JOIN branchtransfers ON items.itemnumber=branchtransfers.itemnumber LEFT JOIN issues ON items.itemnumber=issues.itemnumber LEFT JOIN borrowers ON reserves.borrowernumber=borrowers.borrowernumber - LEFT JOIN circulation_rules ON items.itype=circulation_rules.itemtype AND rule_name = 'holdallowed' AND circulation_rules.branchcode IS NULL AND circulation_rules.categorycode IS NULL + LEFT JOIN circulation_rules ON ( items.itype=circulation_rules.itemtype AND rule_name = 'holdallowed' AND circulation_rules.branchcode IS NULL AND circulation_rules.categorycode IS NULL ) WHERE reserves.found IS NULL $sqldatewhere -- 2.39.5