*** ./src/backend/parser/analyze.c.orig Sun Nov 25 17:44:19 2001 --- ./src/backend/parser/analyze.c Sun Nov 25 17:49:46 2001 *************** *** 1759,1765 **** * wrong to fail to make a jointree entry if only NEW and not * OLD is mentioned. */ ! if (has_old || (has_new && stmt->event == CMD_UPDATE)) { /* hack so we can use addRTEtoQuery() */ sub_pstate->p_rtable = sub_qry->rtable; --- 1759,1766 ---- * wrong to fail to make a jointree entry if only NEW and not * OLD is mentioned. */ ! if ((has_old || (has_new && stmt->event == CMD_UPDATE)) && ! (top_subqry->commandType != CMD_UTILITY)) { /* hack so we can use addRTEtoQuery() */ sub_pstate->p_rtable = sub_qry->rtable;