Skip site navigation (1) Skip section navigation (2)

Changes to sequence.c

From: "Billy G(dot) Allie" <Bill(dot)Allie(at)mug(dot)org>
To: pgsql-patches(at)postgreSQL(dot)org
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Changes to sequence.c
Date: 1998-03-02 06:16:24
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
I encountered a problem (bug? feature?) where "select currval('sequence')" 
will generate an error if "select nextval('sequence')" is not executed first.  
The attached patch will change this behaviour by reading the sequence tuple 
and returning the last_value attribute if nextval has not been called on the 
sequence yet.

The patched code appears to work as intended and did not have any effect on 
the output of the regression test.

Attachment: patch.03
Description: text/plain (990 bytes)


pgsql-hackers by date

Next:From: Brook MilliganDate: 1998-03-02 06:17:44
Subject: SOLUTION: undefined symbols in
Previous:From: The Hermit HackerDate: 1998-03-02 05:42:51
Subject: Re: [HACKERS] SunOS patches

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group