add testcase for issue #2119

This commit is contained in:
wenshao
2017-12-01 20:53:53 +08:00
parent 2180b61dd1
commit eb7471eb47
2 changed files with 49 additions and 0 deletions
@@ -15,6 +15,7 @@
*/
package com.alibaba.druid.sql.ast;
import com.alibaba.druid.sql.visitor.SQLASTOutputVisitor;
import com.alibaba.druid.sql.visitor.SQLASTVisitor;
public class SQLCommentHint extends SQLObjectImpl implements SQLHint {
@@ -46,4 +47,8 @@ public class SQLCommentHint extends SQLObjectImpl implements SQLHint {
public SQLCommentHint clone() {
return new SQLCommentHint(text);
}
public void output(StringBuffer buf) {
new SQLASTOutputVisitor(buf).visit(this);
}
}