Repository navigation
Commit 0c0989b
Parse a parenthesed LATERAL FROM item
isParenthesedFromItemAhead() declines ParenthesedFromItem when the token
after "(" is LATERAL, on the basis that LateralSubSelect handles it.
LateralSubSelect begins at <K_LATERAL>, so it can never match input that
begins at "(", and no later alternative accepts it either. Every
parenthesed LATERAL item therefore fails at the opening parenthesis with
"Encountered: <OPENING_BRACKET>".
Remove the guard so ParenthesedFromItem is tried, as it was before
2d2ee4b replaced the syntactic LOOKAHEAD(ParenthesedFromItem()) with
this two-token predicate.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 7123d25 commit 0c0989b
3 files changed
Lines changed: 20 additions & 1 deletion
File tree
- src
- main/jjtree/net/sf/jsqlparser/parser
- test/java/net/sf/jsqlparser/statement/select
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1202 | 1202 | | |
1203 | 1203 | | |
1204 | 1204 | | |
1205 | | - | |
1206 | 1205 | | |
1207 | 1206 | | |
1208 | 1207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2728 | 2728 | | |
2729 | 2729 | | |
2730 | 2730 | | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
2731 | 2738 | | |
2732 | 2739 | | |
2733 | 2740 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
36 | 49 | | |
37 | 50 | | |
38 | 51 | | |
| |||
0 commit comments