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: m0y9OWX-0009iWC@bgalli.mug.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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 Content-Type Size
patch.03 text/plain 990 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Brook Milligan 1998-03-02 06:17:44 SOLUTION: undefined symbols in libpgtcl.so
Previous Message The Hermit Hacker 1998-03-02 05:42:51 Re: [HACKERS] SunOS patches