diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-12-17 01:25:25 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-12-17 01:25:25 +0000 |
commit | 21992ed10adfdaa1eb59cddc1be0e54621a2bd18 (patch) | |
tree | 11bb2be15e9e519858cf062d5b6b6e2e7abd8e49 /src/backend/parser/parse_expr.c | |
parent | ac00256ceb2d93570eea96c7e4b84eda0ec7a8b7 (diff) | |
download | postgresql-21992ed10adfdaa1eb59cddc1be0e54621a2bd18.tar.gz postgresql-21992ed10adfdaa1eb59cddc1be0e54621a2bd18.zip |
Reverse out nextval patch.
Diffstat (limited to 'src/backend/parser/parse_expr.c')
-rw-r--r-- | src/backend/parser/parse_expr.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c index 5b50de1494b..0b738a87307 100644 --- a/src/backend/parser/parse_expr.c +++ b/src/backend/parser/parse_expr.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.61 1999/12/16 20:07:41 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.62 1999/12/17 01:25:25 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -531,30 +531,6 @@ static Node * transformAttr(ParseState *pstate, Attr *att, int precedence) { Node *basenode; - char * attribute; - - /* Get the name of the first attribute */ - if ((att != NULL) && (lfirst(att->attrs) != NULL)) - { - /* - * Special case for name.nextval and name.currval, assume it's a - * sequence and transform to function call to nextval('name') and - * currval('name') - */ - attribute = pstrdup(((Value *) lfirst(att->attrs))->val.str); - if ((strcasecmp(attribute, "nextval") == 0) || - (strcasecmp(attribute, "currval") == 0)) - { - Value *s = makeNode(Value); - - s->type = T_String; - s->val.str = att->relname; - - return ParseFuncOrColumn(pstate, attribute, - lcons(make_const(s), NIL), false, false, - &pstate->p_last_resno, precedence); - } - } basenode = ParseNestedFuncOrColumn(pstate, att, &pstate->p_last_resno, precedence); |