mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved parser performance.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user