Skip to content

Commit

Permalink
增加toString的实现
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Sep 2, 2013
1 parent 3afd71a commit 965c428
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package com.alibaba.druid.sql.ast.expr;

import com.alibaba.druid.sql.SQLUtils;
import com.alibaba.druid.sql.ast.SQLExprImpl;
import com.alibaba.druid.sql.ast.SQLName;
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
Expand Down Expand Up @@ -57,8 +58,8 @@ public void setLowerName(String lowerName) {
this.lowerName = lowerName;
}

public void output(StringBuffer buf) {
buf.append(this.name);
public String toString() {
return SQLUtils.toSQLString(this);
}

protected void accept0(SQLASTVisitor visitor) {
Expand Down

0 comments on commit 965c428

Please sign in to comment.