improved PageUtils & support natural join. issue #1711

This commit is contained in:
wenshao
2017-05-08 03:27:32 +08:00
parent 2dbe1da578
commit 306f956273
8 changed files with 221 additions and 1 deletions
@@ -29,6 +29,9 @@ public class SQLJoinTableSource extends SQLTableSourceImpl {
protected SQLExpr condition;
protected final List<SQLExpr> using = new ArrayList<SQLExpr>();
protected boolean natural = false;
public SQLJoinTableSource(String alias){
super(alias);
}
@@ -93,6 +96,14 @@ public class SQLJoinTableSource extends SQLTableSourceImpl {
return this.using;
}
public boolean isNatural() {
return natural;
}
public void setNatural(boolean natural) {
this.natural = natural;
}
public void output(StringBuffer buf) {
this.left.output(buf);
buf.append(' ');