Skip to content
Snippets Groups Projects
Commit 7afd56c3 authored by Tom Lane's avatar Tom Lane
Browse files

Use castNode() in a bunch of statement-list-related code.

When I wrote commit ab1f0c82, I really missed the castNode() macro that
Peter E. had proposed shortly before.  This back-fills the uses I would
have put it to.  It's probably not all that significant, but there are
more assertions here than there were before, and conceivably they will
help catch any bugs associated with those representation changes.

I left behind a number of usages like "(Query *) copyObject(query_var)".
Those could have been converted as well, but Peter has proposed another
notational improvement that would handle copyObject cases automatically,
so I let that be for now.
parent 9ba8a9ce
No related branches found
No related tags found
No related merge requests found
Showing
with 63 additions and 90 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment