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

Commit b686fb5

Browse files
committed
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 ...
1 parent e5cdecd commit b686fb5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/backend/parser/parse_func.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.96 2000/12/27 23:59:11 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.97 2001/01/23 02:32:26 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1479,11 +1479,6 @@ setup_field_select(Node *input, char *attname, Oid relid)
14791479

14801480
attno = get_attnum(relid, attname);
14811481

1482-
/* XXX Is there still a reason for this restriction? */
1483-
if (attno < 0)
1484-
elog(ERROR, "Cannot reference attribute '%s'"
1485-
" of tuple params/return values for functions", attname);
1486-
14871482
fselect->arg = input;
14881483
fselect->fieldnum = attno;
14891484
fselect->resulttype = get_atttype(relid, attno);

0 commit comments

Comments
 (0)