Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ad01dd2

Browse files
committed
If there is no table in RangeTable for colname then
elog (WARN, "attribute %s not found", colname);
1 parent 139858e commit ad01dd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/parser/parse_query.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.15 1997/03/12 20:47:57 scrappy Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.16 1997/05/31 07:10:25 vadim Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -771,6 +771,8 @@ checkTargetTypes(ParseState *pstate, char *target_colname,
771771
rte = refnameRangeTableEntry(pstate->p_rtable, refname);
772772
else {
773773
rte = colnameRangeTableEntry(pstate, colname);
774+
if ( rte == (RangeTblEntry *) NULL )
775+
elog (WARN, "attribute %s not found", colname);
774776
refname = rte->refname;
775777
}
776778

0 commit comments

Comments
 (0)