1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

Update nextval() code.

This commit is contained in:
Bruce Momjian
1999-03-16 20:15:06 +00:00
parent 89b762e509
commit bfcf90600b

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.41 1999/03/16 04:25:54 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.42 1999/03/16 20:15:06 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -587,6 +587,8 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
/* strip off quotes, keep case */ /* strip off quotes, keep case */
seqrel = pstrdup(seqrel+1); seqrel = pstrdup(seqrel+1);
seqrel[strlen(seqrel)-1] = '\0'; seqrel[strlen(seqrel)-1] = '\0';
pfree(DatumGetPointer(seq->constvalue));
seq->constvalue = (Datum)textin(seqrel);
} }
else else
{ {