Repository navigation
Commit ea2d1d1
fix: parse user variables with three or more name parts (#2949)
The assignment probe in SimpleExpression looked only 5 tokens ahead, so
"@db.sch.stg" filled the window before the "=" or ":=" check and was
committed to as an assignment. Scan the whole variable chain instead, so
Snowflake stage references such as DIRECTORY(@db.sch.stg) parse.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 2d407c0 commit ea2d1d1
2 files changed
Lines changed: 13 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 | |
|---|---|---|---|
| |||
17136 | 17136 | | |
17137 | 17137 | | |
17138 | 17138 | | |
17139 | | - | |
| 17139 | + | |
| 17140 | + | |
| 17141 | + | |
| 17142 | + | |
17140 | 17143 | | |
17141 | 17144 | | |
17142 | 17145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4471 | 4471 | | |
4472 | 4472 | | |
4473 | 4473 | | |
| 4474 | + | |
| 4475 | + | |
| 4476 | + | |
| 4477 | + | |
| 4478 | + | |
| 4479 | + | |
| 4480 | + | |
| 4481 | + | |
| 4482 | + | |
4474 | 4483 | | |
4475 | 4484 | | |
4476 | 4485 | | |
| |||
0 commit comments