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
The patched code appears to work as intended and did not have any effect on
the output of the regression test.
Description: text/plain (990 bytes)
pgsql-hackers by date
|Next:||From: Brook Milligan||Date: 1998-03-02 06:17:44|
|Subject: SOLUTION: undefined symbols in libpgtcl.so|
|Previous:||From: The Hermit Hacker||Date: 1998-03-02 05:42:51|
|Subject: Re: [HACKERS] SunOS patches |