File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
main/java/net/sf/jsqlparser/expression
test/java/net/sf/jsqlparser/test/select Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ public String toString() {
6060 buffer .append (' ' );
6161 buffer .append (type );
6262 }
63- buffer .append (' ' );
6463 } else {
6564 switch (type ) {
6665 case PRECEDING :
@@ -70,14 +69,12 @@ public String toString() {
7069 buffer .append (" UNBOUNDED FOLLOWING" );
7170 break ;
7271 case CURRENT :
73- buffer .append (" CURRENT ROW " );
72+ buffer .append (" CURRENT ROW" );
7473 break ;
7574 default :
7675 break ;
7776 }
78-
7977 }
80-
8178 return buffer .toString ();
8279 }
8380}
Original file line number Diff line number Diff line change @@ -1025,12 +1025,12 @@ 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
10321032 public void testAnalyticFunction18 () throws JSQLParserException {
1033- String statement = "SELECT AVG(sal) OVER (PARTITION BY deptno ORDER BY sal RANGE CURRENT ROW ) AS avg_of_current_sal FROM emp" ;
1033+ String statement = "SELECT AVG(sal) OVER (PARTITION BY deptno ORDER BY sal RANGE CURRENT ROW) AS avg_of_current_sal FROM emp" ;
10341034 assertSqlCanBeParsedAndDeparsed (statement );
10351035 }
10361036
You can’t perform that action at this time.
0 commit comments