public void testExpressions() {
Table t = getBasicTable();
SelectStatement st = t.getSelectStatement();
SelectTableReference ref = st.getSelectTableReference();
BooleanConstraint bc = st.getWhere().createGT();
Expression e1 = bc.createSUM();
e1.addPart(ref.newColumnReference("MyIndex"));
e1.addPart(3);
Expression e2 = bc.createSUM();
e2.addPart(5);
SQLGenerator gen = getSQLGenerator();
String got = gen.getQuery(st);
String expect = "SELECT MyIndex, MyName, MyDate FROM MySchema.MyTable WHERE (MyIndex+3)>5";
assertEquals(expect, got);
}