Commit 897a1cd
committed
Add CTEType handling to FROM clause rewriting
The FROM clause rewriter had no case for CTEType, causing CTE references
to hit the default error case "unknown indirect type".
CTEs are now handled like views - the inner SELECT is executed and
wrapped with the CTE name as an alias: ( inner_select ) AS "cte_name"1 parent 03320a5 commit 897a1cd
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
674 | 680 | | |
675 | 681 | | |
676 | 682 | | |
| |||
0 commit comments