• Tom Lane's avatar
    It is possible for ResolveNew to be used to insert a sublink into a · 1df7a455
    Tom Lane authored
    subquery that didn't previously have one.  We have traditionally made
    the caller of ResolveNew responsible for updating the hasSubLinks flag
    of the outermost query, but this fails to account for hasSubLinks in
    subqueries.  Fix ResolveNew to handle this.  We might later want to
    change the calling convention of ResolveNew so that it can fix the
    outer query too, simplifying callers.  But I went with the localized
    fix for now.  Per bug report from J Smith, 20-Oct-03.
    1df7a455
rewriteManip.c 25.9 KB