Repository navigation
Commit 28ad7d2
authored
feat: allow SELECT without target expressions for PostgreSQL (#2841)
* feat: allow SELECT without target expressions for PostgreSQL
Resolves #2784
* style: rename new test to camelCase for Codacy
* fix: disambiguate BigQuery AS STRUCT/VALUE qualifier from select tail
Making the select-items group optional for the target-less PostgreSQL
SELECT let JavaCC see K_AS in the follow set of the optional AS
STRUCT/VALUE qualifier block, producing a choice conflict at the block.
Guard it with an explicit lookahead so AS only opens the qualifier when
STRUCT or VALUE comes next.1 parent 8ade7b0 commit 28ad7d2
4 files changed
Lines changed: 36 additions & 2 deletions
File tree
- src
- main
- java/net/sf/jsqlparser
- statement/select
- util/deparser
- jjtree/net/sf/jsqlparser/parser
- test/java/net/sf/jsqlparser/statement/select
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| 632 | + | |
632 | 633 | | |
633 | 634 | | |
634 | 635 | | |
635 | 636 | | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
636 | 642 | | |
637 | 643 | | |
638 | 644 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| 382 | + | |
382 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
383 | 389 | | |
384 | 390 | | |
385 | 391 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9241 | 9241 | | |
9242 | 9242 | | |
9243 | 9243 | | |
9244 | | - | |
| 9244 | + | |
9245 | 9245 | | |
9246 | 9246 | | |
9247 | 9247 | | |
| |||
9252 | 9252 | | |
9253 | 9253 | | |
9254 | 9254 | | |
9255 | | - | |
| 9255 | + | |
| 9256 | + | |
| 9257 | + | |
| 9258 | + | |
| 9259 | + | |
| 9260 | + | |
| 9261 | + | |
| 9262 | + | |
9256 | 9263 | | |
9257 | 9264 | | |
9258 | 9265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2398 | 2398 | | |
2399 | 2399 | | |
2400 | 2400 | | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
2401 | 2416 | | |
2402 | 2417 | | |
2403 | 2418 | | |
| |||
0 commit comments