Fix markTargetListOrigin() to not fail on a simple-Var reference to a
Tom Lane <tgl@sss.pgh.pa.us>
Fix markTargetListOrigin() to not fail on a simple-Var reference to a recursive CTE that we're still in progress of analyzing. Add a similar guard to the similar code in expandRecordVariable(), and tweak regression tests to cover this case. Per report from Dickson S. Guedes.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/parse_target.c | modified | +13 −4 |
| src/test/regress/expected/with.out | modified | +9 −9 |
| src/test/regress/sql/with.sql | modified | +2 −2 |