add testcase & remove unused code

This commit is contained in:
wenshao
2013-06-16 08:51:51 +08:00
parent 2aabdaea4b
commit da433839ee
98 changed files with 1424 additions and 1459 deletions
@@ -0,0 +1,23 @@
package com.alibaba.druid.bvt.sql;
import org.junit.Assert;
import junit.framework.TestCase;
import com.alibaba.druid.sql.ast.SQLStatement;
import com.alibaba.druid.sql.parser.SQLStatementParser;
import com.alibaba.druid.sql.test.TestUtils;
public class SQLCommentStatementTest extends TestCase {
public void test_0() throws Exception {
String sql = "COMMENT on table t1 IS 'xxx'";
SQLStatementParser parser = new SQLStatementParser(sql);
SQLStatement stmt = parser.parseStatementList().get(0);
String text = TestUtils.outputSqlServer(stmt);
Assert.assertEquals("COMMENT ON TABLE t1 IS 'xxx'", text);
}
}