Repository navigation
Commit d709c4e
Remove the 500-token cap from the nested set operation lookahead (#2780)
isNestedSetOperationAhead() gave up after 500 tokens, so a parenthesised
set operation whose first branch is longer than that was parsed as a
parenthesised FROM item and failed on the set operator. Walk the token
chain once instead of calling getToken(i) per position, which removes
the need for a cap.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 066f581 commit d709c4e
2 files changed
Lines changed: 20 additions & 21 deletions
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 | |
|---|---|---|---|
| |||
765 | 765 | | |
766 | 766 | | |
767 | 767 | | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
789 | 774 | | |
790 | 775 | | |
791 | 776 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
5362 | 5364 | | |
5363 | 5365 | | |
5364 | 5366 | | |
| 5367 | + | |
| 5368 | + | |
| 5369 | + | |
| 5370 | + | |
| 5371 | + | |
| 5372 | + | |
| 5373 | + | |
| 5374 | + | |
| 5375 | + | |
| 5376 | + | |
| 5377 | + | |
| 5378 | + | |
5365 | 5379 | | |
5366 | 5380 | | |
5367 | 5381 | | |
| |||
0 commit comments