We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd31563 commit 99f61daCopy full SHA for 99f61da
src/backend/parser/parse_target.c
@@ -7,7 +7,7 @@
7
*
8
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.34 1999/02/03 21:16:59 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.35 1999/04/29 03:01:50 tgl Exp $
11
12
*-------------------------------------------------------------------------
13
*/
@@ -216,6 +216,8 @@ MakeTargetEntryExpr(ParseState *pstate,
216
rd = pstate->p_target_relation;
217
Assert(rd != NULL);
218
resdomno = attnameAttNum(rd, colname);
219
+ if (resdomno <= 0)
220
+ elog(ERROR, "Cannot assign to system attribute '%s'", colname);
221
attrisset = attnameIsSet(rd, colname);
222
attrtype = attnumTypeId(rd, resdomno);
223
if ((arrayRef != NIL) && (lfirst(arrayRef) == NIL))
0 commit comments