Hi, John McNally

criteria.add(col_b, (Object)"between a and b", Criteria.CUSTOM)
It generate the sql query 
" .. FROM Table WHERE   BETWEEN a and b AND COL_A = ABC"
                                    ^|^  Missing COL_B name

To correct ths problem 
BasePeer.java
line number 737
- whereClause.add( custom );
+ whereClause.add( key + " " + custom );

I'm not sure it is correct patch or not , but it works well in my case.

Thanks,

youngho


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to