Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2022-12-16 18:07:42 +0000
committerTom Lane2022-12-16 18:07:42 +0000
commit935277b24172979e8244a5399906c358e4176b49 (patch)
tree74db8165d9625f0d34ebe092bbf27a0358a8175e /contrib/jsonb_plpython
parentb059a2409faf5833b3ba7792e247d6466c9e8090 (diff)
Fix inability to reference CYCLE column from inside its CTE.
Such references failed with "cache lookup failed for type 0" because we didn't resolve the type of the CYCLE column until after analyzing the CTE's query. We can just move that processing to before the recursive parse_sub_analyze call, though. While here, invent a couple of local variables to make this code less egregiously wider-than-80-columns. Per bug #17723 from Vik Fearing. Back-patch to v14 where the CYCLE feature was added. Discussion: https://postgr.es/m/17723-2c4985ff111e7bba@postgresql.org
Diffstat (limited to 'contrib/jsonb_plpython')
0 files changed, 0 insertions, 0 deletions