Commit afd6e29
committed
Skip literals and comments in subquery_alias_from_item depth tracking
Parentheses inside string literals or comments (e.g. (SELECT ...) || ')'
AS year_total) no longer corrupt the depth counter, which previously
caused the alias to be missed and the ORDER BY wrapper to not apply.1 parent 7740e27 commit afd6e29
1 file changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5593 | 5593 | | |
5594 | 5594 | | |
5595 | 5595 | | |
| 5596 | + | |
5596 | 5597 | | |
5597 | 5598 | | |
5598 | 5599 | | |
5599 | 5600 | | |
5600 | 5601 | | |
5601 | 5602 | | |
| 5603 | + | |
| 5604 | + | |
| 5605 | + | |
| 5606 | + | |
| 5607 | + | |
| 5608 | + | |
| 5609 | + | |
| 5610 | + | |
| 5611 | + | |
| 5612 | + | |
| 5613 | + | |
| 5614 | + | |
| 5615 | + | |
| 5616 | + | |
| 5617 | + | |
| 5618 | + | |
| 5619 | + | |
| 5620 | + | |
| 5621 | + | |
| 5622 | + | |
| 5623 | + | |
| 5624 | + | |
| 5625 | + | |
| 5626 | + | |
| 5627 | + | |
| 5628 | + | |
| 5629 | + | |
| 5630 | + | |
| 5631 | + | |
| 5632 | + | |
| 5633 | + | |
| 5634 | + | |
| 5635 | + | |
5602 | 5636 | | |
5603 | 5637 | | |
5604 | 5638 | | |
| |||
0 commit comments