not if you use form.vars.id, i.e. the value returned by db [table].insert(...)
On May 22, 2:58 pm, Wes James <[email protected]> wrote: > Wouldn't that always be the case for a multi-user system? > > On Fri, May 22, 2009 at 1:55 PM, mdipierro <[email protected]> wrote: > > > do not do this because if another thread has created a record > > meanwhile you get the wrong result. > > > On May 22, 2:38 pm, Wes James <[email protected]> wrote: > > > I also noticed in one of the posts that you can do: > > > > db.executesql('select max(id) from mytable') > > > > with sqlite. sql may be db dependent. > > > > -wes > > > > On Fri, May 22, 2009 at 1:28 PM, NewBeen <[email protected]> wrote: > > > > > The problem is that the answer is given just don´t work, > > > > if you look to the code i post is the code in the answer and always > > > > return none ;) > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

