Rewrites CTEs only once to prevent a spurious error

Edit
ID 6254
Title Rewrites CTEs only once to prevent a spurious error
CI (CFBot) Summary
Stats (from CFBot) Patch version: v1, Patch count: 1, First patch: +28−0, All patches: +28−0
Topic Bug Fixes
Tags Bugfix My First Patch
Created 2025-11-26 10:49:49
Last modified 2025-11-26 10:52:31 (35 minutes ago)
Latest email 2025-11-26 10:33:53 (54 minutes ago)
Status
PG19-4 (2026-01-01 – 2026-01-31): Needs review
Target version
Authors Bernice Southey (fyrefreez)
Reviewers Become reviewer
Committer
Links
Emails
Second RewriteQuery complains about first RewriteQuery in edge case
First at 2025-11-26 10:33:53 by Bernice Southey <bernice.southey at gmail.com>
Latest at 2025-11-26 10:33:53 by Bernice Southey <bernice.southey at gmail.com>
Latest attachment (v1-0001-Rewrites-CTEs-only-once-to-prevent-a-spurious-error.patch) at 2025-11-26 10:33:53 from Bernice Southey <bernice.southey at gmail.com>
    Attachment (v1-0001-Rewrites-CTEs-only-once-to-prevent-a-spurious-error.patch) at 2025-11-26 10:33:53 from Bernice Southey <bernice.southey at gmail.com> (Patch: Yes)
History
When Who What
2025-11-26 10:52:31 Bernice Southey (fyrefreez) Changed tags to Bugfix, My First Patch
2025-11-26 10:49:49 Bernice Southey (fyrefreez) Attached mail thread CAEDh4nyD6MSH9bROhsOsuTqGAv_QceU_GDvN9WcHLtZTCYM1kA@mail.gmail.com
2025-11-26 10:49:49 Bernice Southey (fyrefreez) Created patch record
Edit