You can view the issue detail at the following URL:
<http://nagoya.apache.org/scarab/issues/id/TRQS73>

Type :        Defect
Issue Id :    TRQS73
Reported by: John McNally
             jmcnally - ([EMAIL PROTECTED])

Details:

Summary: Criteria.toString() modifies the Criteria object
Description: BasePeer.createQueryString resets the limit/offset fields in Criteria.  
This is to prevent executeQuery from re-executing the limit/offset in java, if it is 
already done by the db.  But it makes it difficult to reuse the criteria.

A bad side effect is due to the use of this method by Criteria.toString() so that the 
toString() method has the effect of changing the Criteria.  So that logging a Criteria 
for debugging leads to the actual sql query being different than the logged version.

Note this problem is mentioned in TRQ47, though the patch there does not attempt to 
solve this problem and it is important enough to have its own issue
Status: New
Priority: High


--
To unsubscribe, e-mail:   <mailto:turbine-torque-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-torque-dev-help@;jakarta.apache.org>

Reply via email to