* Test Criterion.setIgnoreCase().
*/
public void testCriterionIgnoreCase() throws TorqueException
{
Criterion criterion1 = new Criterion(
new ColumnImpl("TABLE", "COLUMN1"), "FoObAr1", Criteria.LIKE);
criterion1.setIgnoreCase(true);
Criterion criterion2 = new Criterion(
new ColumnImpl("TABLE", "COLUMN2"), "FoObAr2", Criteria.EQUAL);
criterion2.setIgnoreCase(true);
Criterion criterion3 = new Criterion(
new ColumnImpl("TABLE", "COLUMN3"), "FoObAr3", Criteria.EQUAL);
Criterion criterion4 = new Criterion(
new ColumnImpl("TABLE", "COLUMN4"), new Integer(1), Criteria.EQUAL);
criterion4.setIgnoreCase(true);
c.where(criterion1.and(criterion2).and(criterion3).and(criterion4));
c.addSelectColumn(new ColumnImpl(null, "TABLE", null, "*"));
c.setDbName("postgresql");
Query result = SqlBuilder.buildQuery(c);
String expect = "SELECT * FROM TABLE WHERE "
+ "(UPPER(TABLE.COLUMN1)=UPPER(?)"