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?
w e b f a c t o r y | matthias pigulla