Re: [BUGS] BUG #4684: lastval in function

2009-02-28 Thread Tom Lane
"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

[BUGS] BUG #4684: lastval in function

2009-02-28 Thread andreas
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