List:General Discussion« Previous MessageNext Message »
From:Matthias Pigulla Date:June 3 1999 12:58am
Subject:Re: mysql_insert_id()
View as plain text  
Benjamin Pflugmann wrote:
> Without looking at the source, it sounds to me as if the server
> sends/updates the value of mysql_insert_id() only if it was changed on
> the server.

I don't really understand your point. If I see things right, the last
insert id is stored in the MYSQL struct. Every time the server generates
a new id, it "tells" the client the value. The client saves the value in
the struct. It should not get lost?

I can't imagine that LAST_INSERT_ID() is intended to return the ID and
then set it to zero - and as Paul already noticed, it doesn't.

So where and why is the value in the MYSQL struct getting lost?

Matthias
-- 
   w e b f a c t o r y | matthias pigulla
      www.webfactory.de  mp@stripped
Thread
mysql_insert_id()Matthias Pigulla1 Jun
  • Re: mysql_insert_id()Paul DuBois1 Jun
    • Re: mysql_insert_id()Matthias Pigulla3 Jun
      • Re: mysql_insert_id()Paul DuBois3 Jun
    • Re: mysql_insert_id()Jim Faucette3 Jun
    • Re: mysql_insert_id()Matthias Pigulla3 Jun
      • Re: mysql_insert_id()Benjamin Pflugmann3 Jun
        • Re: mysql_insert_id()Michael Widenius3 Jun
          • Re: mysql_insert_id()Paul DuBois3 Jun
    • Re: mysql_insert_id()Matthias Pigulla3 Jun
    • Re: mysql_insert_id()Matthias Pigulla3 Jun
      • Re: mysql_insert_id()Michael Widenius3 Jun