i added a few more attributes to as far as i could see completely
restore the Criteria to its initial state.

patch applied.

john mcnally

On Wed, 2002-06-12 at 10:56, James Turner wrote:
> I can't fully test this on my machine because I can't get the Maven dist 
> target to run, but I believe this will fix a problem wherein if you use 
> .clear() on a Criteria, and then try to use the Criteria on a different 
> table, it fails.
> 
> Index: Criteria.java
> ===================================================================
> RCS file: 
> 
>/home/cvspublic/jakarta-turbine-torque/src/java/org/apache/torque/util/Criteria.java,v
> retrieving revision 1.28
> diff -r1.28 Criteria.java
> 231a232,248
>  >     public void clear() {
>  >       super.clear();
>  >       ignoreCase = false;
>  >       singleRecord = false;
>  >       cascade = false;
>  >       selectModifiers.clear();
>  >       selectColumns.clear();
>  >       orderByColumns.clear();
>  >       groupByColumns.clear();
>  >       having = null;
>  >       asColumns.clear();
>  >       joinL = null;
>  >       joinR = null;
>  >     }
>  >
>  >
>  >
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to