File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/javacc/net/sf/jsqlparser/parser Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ import net.sf.jsqlparser.statement.update.Update;
157
157
* The parser generated by JavaCC
158
158
*/
159
159
public class CCJSqlParser {
160
+ private boolean allowOraclePrior = false;
160
161
}
161
162
162
163
@@ -255,6 +256,7 @@ TOKEN: /* SQL Keywords. prefixed with K_ to avoid name clashes */
255
256
| <K_REFERENCES:"REFERENCES">
256
257
| <K_START:"START">
257
258
| <K_CONNECT:"CONNECT">
259
+ | <K_PRIOR:"PRIOR">
258
260
}
259
261
260
262
@@ -1084,7 +1086,7 @@ Expression WhereClause():
1084
1086
Expression OracleHierarchicalQueryClause(): {}
1085
1087
{
1086
1088
[ <K_START> <K_WITH> AndExpression() ]
1087
- <K_CONNECT> <K_BY> [ "NOCYCLE" ] AndExpression()
1089
+ <K_CONNECT> <K_BY> [ "NOCYCLE" ] { allowOraclePrior=true; } AndExpression() { allowOraclePrior=false; }
1088
1090
1089
1091
{ return null; }
1090
1092
}
@@ -1303,6 +1305,7 @@ Expression RegularCondition():
1303
1305
}
1304
1306
{
1305
1307
1308
+ [ <K_PRIOR> ]
1306
1309
[ <K_NOT> { not = true; } ]
1307
1310
leftExpression=ComparisonItem() { result = leftExpression; }
1308
1311
@@ -1319,6 +1322,7 @@ Expression RegularCondition():
1319
1322
)
1320
1323
rightExpression=ComparisonItem()
1321
1324
1325
+ [ <K_PRIOR> ]
1322
1326
[ "(+)" { oracleJoin=EqualsTo.ORACLE_JOIN_LEFT; } ]
1323
1327
1324
1328
{
You can’t perform that action at this time.
0 commit comments