@Langdon: I don't believe so.  At the PHP/MySQL interface level, the
last insert ID is scoped to the current database connection, so as
long as you are saving/getting the ID synchronously (i.e. not doing
multiple saves in multiple places in the code) this should not be an
issue.

On Feb 13, 9:39 pm, Langdon Stevenson <[EMAIL PROTECTED]>
wrote:
> >> Before cake, whenever i save data into a row without specifying the
> >> id(auto incremental primary key). I cant get the id number back from
> >> mysql withouth doing a search. However, using cake's model->save, i
> >> get the model->id magically. Anyone actually knows how cake retrived
> >> the id key?
>
> > But you had the last_insert_id() mysql function for that purpose.
>
> Just out of interest, can anyone tell me how reliable this is?
>
> For instance, if you have a very busy server, could last_insert_id()
> ever return the wrong value?
>
> Regards,
> Langdon


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to