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:
parent
669a146e1a
commit
7a7a2c1e0d
1 changed files with 4 additions and 4 deletions
|
@ -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)|;
|
||||
|
|
Loading…
Reference in a new issue