File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed
main/java/net/sf/jsqlparser/expression
test/java/net/sf/jsqlparser/test/select Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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 (' ' );
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments