Revert "Changing innerjoin to left join for mysql5"

This reverts commit c0dbeb8a3f4f9ab99109d42ea194b53a46235c00.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Henri-Damien LAURENT 2007-10-09 16:46:36 -05:00 committed by Joshua Ferraro
parent 669a146e1a
commit 7a7a2c1e0d

View file

@ -562,11 +562,11 @@ sub GetIssuingRules {
my ($itemnumber,$categorycode)=@_;
my $dbh = C4::Context->dbh();
my $query=qq|SELECT *
FROM items
LEFT JOIN biblioitems ON items.biblioitemnumber=biblioitems.biblioitemnumber
LEFT JOIN itemtypes ON biblioitems.itemtype=itemtypes.itemtype
LEFT JOIN issuingrules ON issuingrules.itemtype=itemtypes.itemtype
FROM items,biblioitems,itemtypes,issuingrules
WHERE items.itemnumber=?
AND items.biblioitemnumber=biblioitems.biblioitemnumber
AND biblioitems.itemtype=itemtypes.itemtype
AND issuingrules.itemtype=itemtypes.itemtype
AND issuingrules.categorycode=?
AND (items.itemlost <> 1
OR items.itemlost is NULL)|;