Tom Lane wrote:
> Sent: Monday, May 09, 2005 8:37 AM
> To: Dennis Bjorklund
> Cc:
> Subject: Re: [PATCHES] lastval() 
> Dennis Bjorklund <[EMAIL PROTECTED]> writes:
> > Here is a small patch that implements a function lastval() 
> that works 
> > just like currval() except that it give the current value 
> of the last 
> > sequence used by nextval().
> Why is that a good idea?  In a complex application it'd be 
> awfully easy to break logic that depends on such a thing.

And you threw out the idea when I proposed it more than a year ago.
However I'd still like to see it, tho in the same shape as 'the other

Eg, succeeding when nextval has not been called, returning 0.
Thus, my suggestion for last_insert_id() still stands.

>                       regards, tom lane
> ---------------------------(end of 
> broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to 

... John

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to [EMAIL PROTECTED] so that your
      message can get through to the mailing list cleanly

Reply via email to