Skip to content

Commit e6b9afd

Browse files
committed
testcase for #670
1 parent 1786e21 commit e6b9afd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,6 +1778,11 @@ public void testAnalyticFunctionProblem1b() throws JSQLParserException {
17781778
assertSqlCanBeParsedAndDeparsed(statement);
17791779
}
17801780

1781+
@Test
1782+
public void testAnalyticFunctionIssue670() throws JSQLParserException {
1783+
assertSqlCanBeParsedAndDeparsed("SELECT last_value(some_column IGNORE NULLS) OVER ( PARTITION BY some_other_column_1, some_other_column_2 ORDER BY some_other_column_3 ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) column_alias FROM some_table");
1784+
}
1785+
17811786
@Test
17821787
public void testFunctionLeft() throws JSQLParserException {
17831788
String statement = "SELECT left(table1.col1, 4) FROM table1";

0 commit comments

Comments
 (0)