"andreas" writes:
> select lastval() ;
> lastval
> -
>2
> i expected lastval() should be 1, because this is the id from the
> insertstatement.
Well, you can't really rely on that when the statement you're executing
contains two different nextval() calls, as this does. The order
The following bug has been logged online:
Bug reference: 4684
Logged by: andreas
Email address: postgre...@elbrief.de
PostgreSQL version: 8.3.6
Operating system: linux
Description:lastval in function
Details:
create table bla ( id serial primary key , name text not