From: Vadim B. Mikheev Date: Thu, 24 Apr 1997 16:04:23 +0000 (+0000) Subject: Have to copyObject((void*)clauseinfo) for a relation' X-Git-Tag: REL6_1~260 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72d271177c5ccc31f0e95c60ae33adc1cab0d01e;p=postgresql Have to copyObject((void*)clauseinfo) for a relation' joininfo (in add_join_clause_info_to_rels()) : clause may be commutted later. --- diff --git a/src/backend/optimizer/plan/initsplan.c b/src/backend/optimizer/plan/initsplan.c index cec015bb01..35b3969b70 100644 --- a/src/backend/optimizer/plan/initsplan.c +++ b/src/backend/optimizer/plan/initsplan.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/initsplan.c,v 1.4 1997/03/12 21:05:59 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/initsplan.c,v 1.5 1997/04/24 16:04:23 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -264,7 +264,7 @@ add_join_clause_info_to_rels(Query *root, CInfo *clauseinfo, List *join_relids) find_joininfo_node(get_base_rel(root, lfirsti(join_relid)), other_rels); joininfo->jinfoclauseinfo = - lcons(clauseinfo, joininfo->jinfoclauseinfo); + lcons(copyObject((void*)clauseinfo), joininfo->jinfoclauseinfo); } }