增强测试

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@969 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-10-15 08:16:12 +00:00
parent 6fc332768a
commit 79d8518f1f
@@ -23,5 +23,20 @@ public class OracleLiteralTest extends TestCase {
System.out.println(text);
}
public void test_date() throws Exception {
String sql = "SELECT DATE '1998-12-25' FROM DUAL;";
String expect = "SELECT DATE '1998-12-25'\n" + "FROM DUAL;\n";
OracleStatementParser parser = new OracleStatementParser(sql);
SQLSelectStatement stmt = (SQLSelectStatement) parser.parseStatementList().get(0);
String text = TestUtils.outputOracle(stmt);
Assert.assertEquals(expect, text);
System.out.println(text);
}
}