#1621 - Consider clean up white space in generated SQL (as in remove unneeded extra spaces)

This commit is contained in:
rob bygrave
2019-01-25 01:47:21 +13:00
parent 5052afbd07
commit 89beaee0f6
46 changed files with 148 additions and 137 deletions
@@ -21,6 +21,17 @@ public class LogicExpressionTest extends BaseExpressionTest {
return new LogicExpression.Or(a, b);
}
@Test
public void addSql() {
DefaultExpressionRequest expReq = newExpressionRequest();
LogicExpression and = and(eq("a", 10), eq("b", 10));
and.addSql(expReq);
assertThat(expReq.getSql()).isEqualTo("(a = ? and b = ?)");
}
@Test
public void isSameByPlan_when_same() {