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:
@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user