Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit21992ed

Browse files
committed
Reverse out nextval patch.
1 parentac00256 commit21992ed

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,intprecedence)
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-
returnParseFuncOrColumn(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)

[8]ページ先頭

©2009-2025 Movatter.jp