This commit is contained in:
温少
2012-05-15 20:56:32 +08:00
parent c857e3e721
commit aa79c6fd51
3 changed files with 8 additions and 8 deletions
@@ -7,21 +7,21 @@ public class MySqlShowCreateFunctionStatement extends MySqlStatementImpl {
private static final long serialVersionUID = 1L;
private SQLExpr functionName;
private SQLExpr name;
public void accept0(MySqlASTVisitor visitor) {
if (visitor.visit(this)) {
acceptChild(visitor, functionName);
acceptChild(visitor, name);
}
visitor.endVisit(this);
}
public SQLExpr getFunctionName() {
return functionName;
public SQLExpr getName() {
return name;
}
public void setFunctionName(SQLExpr functionName) {
this.functionName = functionName;
public void setName(SQLExpr functionName) {
this.name = functionName;
}
}
@@ -623,7 +623,7 @@ public class MySqlStatementParser extends SQLStatementParser {
lexer.nextToken();
MySqlShowCreateFunctionStatement stmt = new MySqlShowCreateFunctionStatement();
stmt.setFunctionName(this.exprParser.name());
stmt.setName(this.exprParser.name());
return stmt;
}
@@ -1617,7 +1617,7 @@ public class MySqlOutputVisitor extends SQLASTOutputVisitor implements MySqlASTV
@Override
public boolean visit(MySqlShowCreateFunctionStatement x) {
print("SHOW CREATE FUNCTION ");
x.getFunctionName().accept(this);
x.getName().accept(this);
return false;
}