bug fixed for sql parser

This commit is contained in:
温少
2012-03-08 23:52:22 +08:00
parent 19d1eccb91
commit 96e8a83a37
43 changed files with 1674 additions and 317 deletions
@@ -15,7 +15,6 @@
*/
package com.alibaba.druid.sql.ast;
import com.alibaba.druid.sql.dialect.oracle.visitor.OracleASTVisitor;
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
public abstract class SQLStatementImpl extends SQLObjectImpl implements SQLStatement {
@@ -34,8 +33,4 @@ public abstract class SQLStatementImpl extends SQLObjectImpl implements SQLState
protected void accept0(SQLASTVisitor visitor) {
throw new UnsupportedOperationException(this.getClass().getName());
}
protected void accept0(OracleASTVisitor visitor) {
throw new UnsupportedOperationException(this.getClass().getName());
}
}
@@ -29,6 +29,10 @@ public class SQLCurrentOfCursorExpr extends SQLExprImpl {
}
public SQLCurrentOfCursorExpr(SQLName cursorName){
this.cursorName = cursorName;
}
public SQLName getCursorName() {
return cursorName;
}