diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-01-23 02:32:26 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-01-23 02:32:26 +0000 |
commit | b686fb5bf1f1c6d18d0ee5807d3bd5bee4bc042c (patch) | |
tree | 918fc444bd8acb735c967b2368ca320d5cbec566 /src/backend/parser/parse_func.c | |
parent | e5cdecd01b2518182412d97828f2875302ef06d3 (diff) | |
download | postgresql-b686fb5bf1f1c6d18d0ee5807d3bd5bee4bc042c.tar.gz postgresql-b686fb5bf1f1c6d18d0ee5807d3bd5bee4bc042c.zip |
Remove no-longer-needed restriction against referencing system
attributes in a FieldSelect node --- all the places that manipulate
these work just fine with system attribute numbers. OK, it's a new
feature, so shoot me ...
Diffstat (limited to 'src/backend/parser/parse_func.c')
-rw-r--r-- | src/backend/parser/parse_func.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/backend/parser/parse_func.c b/src/backend/parser/parse_func.c index 0e1b782fd97..a7be856c1e7 100644 --- a/src/backend/parser/parse_func.c +++ b/src/backend/parser/parse_func.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.96 2000/12/27 23:59:11 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.97 2001/01/23 02:32:26 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1479,11 +1479,6 @@ setup_field_select(Node *input, char *attname, Oid relid) attno = get_attnum(relid, attname); - /* XXX Is there still a reason for this restriction? */ - if (attno < 0) - elog(ERROR, "Cannot reference attribute '%s'" - " of tuple params/return values for functions", attname); - fselect->arg = input; fselect->fieldnum = attno; fselect->resulttype = get_atttype(relid, attno); |