improve sql parser

This commit is contained in:
wenshao
2013-08-03 15:45:40 +08:00
parent 1974aa2cce
commit 6e5fb2e7df
346 changed files with 1700 additions and 1436 deletions
@@ -21,7 +21,6 @@ import java.util.List;
import com.alibaba.druid.sql.ast.statement.SQLSelectOrderByItem;
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
@SuppressWarnings("serial")
public class SQLOrderBy extends SQLObjectImpl {
protected final List<SQLSelectOrderByItem> items = new ArrayList<SQLSelectOrderByItem>();
@@ -29,8 +28,8 @@ public class SQLOrderBy extends SQLObjectImpl {
public SQLOrderBy(){
}
public SQLOrderBy(SQLExpr expr) {
public SQLOrderBy(SQLExpr expr){
SQLSelectOrderByItem item = new SQLSelectOrderByItem(expr);
item.setParent(this);
this.items.add(item);