improved sql parser.

This commit is contained in:
wenshao
2017-06-27 11:28:15 +08:00
parent 8339beee7a
commit c64c40e81d
11 changed files with 118 additions and 7 deletions
@@ -49,4 +49,17 @@ public class PGValuesQuery extends PGSQLObjectImpl implements SQLSelectQuery {
public void setBracket(boolean bracket) {
this.bracket = bracket;
}
public PGValuesQuery clone() {
PGValuesQuery x = new PGValuesQuery();
x.bracket = bracket;
for (int i = 0; i < values.size(); ++i) {
SQLExpr value = values.get(i).clone();
value.setParent(x);
x.values.add(value);
}
return x;
}
}