Skip to content

Commit 3b21988

Browse files
committed
update readme
1 parent a3a7ff9 commit 3b21988

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ The generated hierarchy can be navigated using the Visitor Pattern.
2828

2929
## Extensions Version 0.8.9
3030

31+
* Backported window option to analytic expression.
32+
* Added **NULLS FIRST** and **NULLS LAST** to order by.
3133
* Improved parsing of **top**.
3234
* Improved support for multi part names (SQLServer)
3335
* Better support for signed expressions. The sign is stored in the parse tree.

src/main/java/net/sf/jsqlparser/expression/WindowOffset.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public void setType(Type type) {
5454
public String toString() {
5555
StringBuilder buffer = new StringBuilder();
5656
if (expression != null) {
57-
buffer.append(' ');
5857
buffer.append(expression);
5958
if (type != null) {
6059
buffer.append(' ');

src/main/java/net/sf/jsqlparser/expression/WindowRange.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void setStart(WindowOffset start) {
4545
@Override
4646
public String toString() {
4747
StringBuilder buffer = new StringBuilder();
48-
buffer.append(" BETWEEN");
48+
buffer.append(" BETWEEN ");
4949
buffer.append(start);
5050
buffer.append(" AND ");
5151
buffer.append(end);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ public void testAnalyticFunction16() throws JSQLParserException {
10251025
}
10261026

10271027
public void testAnalyticFunction17() throws JSQLParserException {
1028-
String statement = "SELECT AVG(sal) OVER (PARTITION BY deptno ORDER BY sal ROWS BETWEEN 0 PRECEDING AND 0 PRECEDING) AS avg_of_current_sal FROM emp";
1028+
String statement = "SELECT AVG(sal) OVER (PARTITION BY deptno ORDER BY sal ROWS BETWEEN 0 PRECEDING AND 0 PRECEDING) AS avg_of_current_sal FROM emp";
10291029
assertSqlCanBeParsedAndDeparsed(statement);
10301030
}
10311031

0 commit comments

Comments
 (0)