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

Commit 21992ed

Browse files
committed
Reverse out nextval patch.
1 parent ac00256 commit 21992ed

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

src/backend/parser/parse_expr.c

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.61 1999/12/16 20:07:41 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.62 1999/12/17 01:25:25 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -531,30 +531,6 @@ static Node *
531531
transformAttr(ParseState *pstate, Attr *att, int precedence)
532532
{
533533
Node *basenode;
534-
char * attribute;
535-
536-
/* Get the name of the first attribute */
537-
if ((att != NULL) && (lfirst(att->attrs) != NULL))
538-
{
539-
/*
540-
* Special case for name.nextval and name.currval, assume it's a
541-
* sequence and transform to function call to nextval('name') and
542-
* currval('name')
543-
*/
544-
attribute = pstrdup(((Value *) lfirst(att->attrs))->val.str);
545-
if ((strcasecmp(attribute, "nextval") == 0) ||
546-
(strcasecmp(attribute, "currval") == 0))
547-
{
548-
Value *s = makeNode(Value);
549-
550-
s->type = T_String;
551-
s->val.str = att->relname;
552-
553-
return ParseFuncOrColumn(pstate, attribute,
554-
lcons(make_const(s), NIL), false, false,
555-
&pstate->p_last_resno, precedence);
556-
}
557-
}
558534

559535
basenode = ParseNestedFuncOrColumn(pstate, att, &pstate->p_last_resno,
560536
precedence);

0 commit comments

Comments
 (0)