improved parser performance.

This commit is contained in:
wenshao
2017-08-21 15:34:10 +08:00
parent 17772cde69
commit 5804eea0c9
20 changed files with 484 additions and 151 deletions
@@ -268,7 +268,7 @@ public class MathematicalFunctionsTest extends TestCase {
String text = output(stmtList);
Assert.assertEquals("SELECT PI() + 0E-18", text);
Assert.assertEquals("SELECT PI() + 0.000000000000000000", text);
}
public void test_22() throws Exception {
@@ -323,7 +323,7 @@ public class MathematicalFunctionsTest extends TestCase {
String text = output(stmtList);
Assert.assertEquals("SELECT ROUND(2.5), ROUND(2.5)", text);
Assert.assertEquals("SELECT ROUND(2.5), ROUND(25E-1)", text);
}
private String output(List<SQLStatement> stmtList) {
@@ -38,7 +38,7 @@ public class NumberTest extends TestCase {
String text = SQLUtils.toSQLString(stmtList, JdbcConstants.MYSQL);
Assert.assertEquals("SELECT -3.20326809E+14;", text);
Assert.assertEquals("SELECT -32032.6809e+10;", text);
}
public void test_1() throws Exception {