bug fixed for mysql parser & update pom version

This commit is contained in:
shaojin.wensj
2019-01-16 10:28:05 +08:00
parent 4ea0aeb0e2
commit 46062863f2
17 changed files with 317 additions and 40 deletions
@@ -24,4 +24,7 @@ public interface SQLStatement extends SQLObject {
SQLStatement clone();
List<SQLObject> getChildren();
String toLowerCaseString();
List<SQLCommentHint> getHeadHintsDirect();
void setHeadHints(List<SQLCommentHint> headHints);
}
@@ -19,10 +19,7 @@ import java.util.ArrayList;
import java.util.List;
import com.alibaba.druid.sql.SQLUtils;
import com.alibaba.druid.sql.ast.SQLExpr;
import com.alibaba.druid.sql.ast.SQLObject;
import com.alibaba.druid.sql.ast.SQLObjectImpl;
import com.alibaba.druid.sql.ast.SQLStatement;
import com.alibaba.druid.sql.ast.*;
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
public class SQLInsertStatement extends SQLInsertInto implements SQLStatement {
@@ -34,6 +31,8 @@ public class SQLInsertStatement extends SQLInsertInto implements SQLStatement {
private boolean afterSemi;
protected List<SQLCommentHint> headHints;
public SQLInsertStatement(){
}
@@ -198,4 +197,12 @@ public class SQLInsertStatement extends SQLInsertInto implements SQLStatement {
public String toLowerCaseString() {
return SQLUtils.toSQLString(this, dbType, SQLUtils.DEFAULT_LCASE_FORMAT_OPTION);
}
public List<SQLCommentHint> getHeadHintsDirect() {
return headHints;
}
public void setHeadHints(List<SQLCommentHint> headHints) {
this.headHints = headHints;
}
}