Skip to content
Snippets Groups Projects
Commit ad01dd27 authored by Vadim B. Mikheev's avatar Vadim B. Mikheev
Browse files

If there is no table in RangeTable for colname then

elog (WARN, "attribute %s not found", colname);
parent 139858e6
No related merge requests found
......@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.15 1997/03/12 20:47:57 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.16 1997/05/31 07:10:25 vadim Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -771,6 +771,8 @@ checkTargetTypes(ParseState *pstate, char *target_colname,
rte = refnameRangeTableEntry(pstate->p_rtable, refname);
else {
rte = colnameRangeTableEntry(pstate, colname);
if ( rte == (RangeTblEntry *) NULL )
elog (WARN, "attribute %s not found", colname);
refname = rte->refname;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment