• Stephen Frost's avatar
    Fix targetRelation initializiation in prepsecurity · ee4ddcb3
    Stephen Frost authored
    In 6f9bd50e, we modified
    expand_security_quals() to tell expand_security_qual() about when the
    current RTE was the targetRelation.  Unfortunately, that commit
    initialized the targetRelation variable used outside of the loop over
    the RTEs instead of at the start of it.
    
    This patch moves the variable and the initialization of it into the
    loop, where it should have been to begin with.
    
    Pointed out by Dean Rasheed.
    
    Back-patch to 9.4 as the original commit was.
    ee4ddcb3
prepsecurity.c 14.5 KB