File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.34 1999/02/03 21:16:59 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.35 1999/04/29 03:01:50 tgl Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -216,6 +216,8 @@ MakeTargetEntryExpr(ParseState *pstate,
216
216
rd = pstate -> p_target_relation ;
217
217
Assert (rd != NULL );
218
218
resdomno = attnameAttNum (rd , colname );
219
+ if (resdomno <= 0 )
220
+ elog (ERROR , "Cannot assign to system attribute '%s'" , colname );
219
221
attrisset = attnameIsSet (rd , colname );
220
222
attrtype = attnumTypeId (rd , resdomno );
221
223
if ((arrayRef != NIL ) && (lfirst (arrayRef ) == NIL ))
You can’t perform that action at this time.
0 commit comments