bug fixed for mysql connection validation checker, and improved odps sql formatter

This commit is contained in:
高铁
2015-09-07 11:28:16 +08:00
parent 961ae42433
commit 820e9f3581
20 changed files with 314 additions and 51 deletions
@@ -15,6 +15,7 @@
*/
package com.alibaba.druid.sql.ast.expr;
import com.alibaba.druid.sql.SQLUtils;
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
public class SQLCharExpr extends SQLTextLiteralExpr implements SQLValuableExpr{
@@ -47,4 +48,8 @@ public class SQLCharExpr extends SQLTextLiteralExpr implements SQLValuableExpr{
public Object getValue() {
return this.text;
}
public String toString() {
return SQLUtils.toSQLString(this);
}
}
@@ -97,4 +97,7 @@ public class SQLIdentifierExpr extends SQLExprImpl implements SQLName {
return true;
}
public String toString() {
return this.name;
}
}