db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Vredeveld" <vredev...@imst.de>
Subject Torque ignoring setLimit(0)?
Date Mon, 19 Sep 2005 11:23:25 GMT
Hello!

during unit testing my software that uses Torque, I discovered that
crit.setLimit(0) does not yield an empty result, as one would expect.
Instead, Torque seems to ignore the set limit at all, as
BasePeer.createQueryString(crit) shows a query with no LIMIT statement at
all. As a result, I receive the full result set instead of an empty one.
Ofcourse, such a limit may not make much sense, but as it is a valid one (at
least in MySQL), I feel Torque should be able to cope with such a
situartion...

Regards,
Dennis Vredeveld


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message