* testcase for andDate()
* issue TORQUE-42
*/
public void testAndDate() throws TorqueException
{
c.addDate(new ColumnImpl("TABLE", "DATE_COLUMN"), 2003, 0, 22, Criteria.GREATER_THAN);
c.andDate(new ColumnImpl("TABLE", "DATE_COLUMN"), 2004, 2, 24, Criteria.LESS_THAN);
Query result = SqlBuilder.buildQuery(c);
assertEquals(
"SELECT FROM TABLE WHERE "
+ "(TABLE.DATE_COLUMN>? AND TABLE.DATE_COLUMN<?)",