[Koha-bugs] [Bug 8594] A report containing a subquery that has a 'limit' will have that limit stripped out

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 14 11:33:27 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8594

--- Comment #4 from Robin Sheat <robin at catalyst.net.nz> ---
OK, here's a totally artificial query that should be able to reproduce this
issue:

select biblionumber, (select itemnumber from items where
items.biblionumber=biblio.biblionumber LIMIT 1) from biblio where
biblionumber<1000;

Try it from the mysql prompt with data where you have a case of one biblio with
multiple items and it should work unless you remove the limit, in which case it
says:

ERROR 1242 (21000): Subquery returns more than 1 row

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list