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

Commit bfcf906

Browse files
committed
Update nextval() code.
1 parent 89b762e commit bfcf906

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/parser/parse_func.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.41 1999/03/16 04:25:54 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.42 1999/03/16 20:15:06 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -587,6 +587,8 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
587587
/* strip off quotes, keep case */
588588
seqrel = pstrdup(seqrel+1);
589589
seqrel[strlen(seqrel)-1] = '\0';
590+
pfree(DatumGetPointer(seq->constvalue));
591+
seq->constvalue = (Datum)textin(seqrel);
590592
}
591593
else
592594
{

0 commit comments

Comments
 (0)