• Tom Lane's avatar
    Use castNode() in a bunch of statement-list-related code. · 7afd56c3
    Tom Lane authored
    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.
    7afd56c3
createas.c 18.5 KB