Skip to content

Commit aee0fa7

Browse files
committed
- difference problem between deparser and tostring for function without parameters resolved
1 parent 90f48ff commit aee0fa7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/java/net/sf/jsqlparser/test/select/SelectTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,11 @@ public void testProblemFunction() throws JSQLParserException {
727727
String stmt = "SELECT test() FROM testtable";
728728
assertSqlCanBeParsedAndDeparsed(stmt);
729729
}
730+
731+
public void testProblemFunction2() throws JSQLParserException {
732+
String stmt = "SELECT sysdate FROM testtable";
733+
assertSqlCanBeParsedAndDeparsed(stmt);
734+
}
730735

731736
private void assertSqlCanBeParsedAndDeparsed(String statement) throws JSQLParserException {
732737
Statement parsed = parserManager.parse(new StringReader(statement));

0 commit comments

Comments
 (0)