Skip to content

Commit 62bfda7

Browse files
committed
1 parent 5b30fb3 commit 62bfda7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,13 @@ public void testFunctions() throws JSQLParserException {
10251025
assertTrue(fun.isAllColumns());
10261026
assertStatementCanBeDeparsedAs(select, statement);
10271027
}
1028+
1029+
@Test
1030+
public void testEscapedFunctionsIssue647() throws JSQLParserException {
1031+
assertSqlCanBeParsedAndDeparsed("SELECT {fn test(0)} AS COL");
1032+
//assertSqlCanBeParsedAndDeparsed("SELECT {fn current_timestamp(0)} AS COL");
1033+
assertSqlCanBeParsedAndDeparsed("SELECT {fn concat(a, b)} AS COL");
1034+
}
10281035

10291036
@Test
10301037
public void testWhere() throws JSQLParserException {

0 commit comments

Comments
 (0)