mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve SQL Eval support
This commit is contained in:
@@ -519,7 +519,7 @@ public class StringFunctionsTest extends TestCase {
|
||||
|
||||
String text = output(stmtList);
|
||||
|
||||
Assert.assertEquals("SELECT SUBSTRING('Sakila' FROM -4 FOR 2);", text);
|
||||
Assert.assertEquals("SELECT SUBSTRING('Sakila', -4, 2);", text);
|
||||
}
|
||||
|
||||
public void test_45() throws Exception {
|
||||
@@ -530,7 +530,7 @@ public class StringFunctionsTest extends TestCase {
|
||||
|
||||
String text = output(stmtList);
|
||||
|
||||
Assert.assertEquals("SELECT SUBSTRING('foobarbar' FROM 4);", text);
|
||||
Assert.assertEquals("SELECT SUBSTRING('foobarbar', 4);", text);
|
||||
}
|
||||
|
||||
public void test_46() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user