assertEquals(0, preparedStatementReplacements.size());
}
public void testCriteriaOffsetLimit() throws TorqueException
{
c.whereDate(new ColumnImpl("TABLE", "DATE_COLUMN"), 2003, 0, 22);
c.setOffset(3).setLimit(5);
c.addSelectColumn(new ColumnImpl(null, "TABLE", null, "COUNT(*)"));
Query result = SqlBuilder.buildQuery(c);
String expect
= "SELECT COUNT(*) FROM TABLE WHERE TABLE.DATE_COLUMN=?"
+ " LIMIT 5 OFFSET 3";