Hello for everyone. I'm new at web2py and I'm trying to do some insertion in a table of my database. But, after the insertion, I need to get the id value of the new register. So, I'm using the following code:
myID = db.tl.insert(name = tlName, length = tlLength); But I was always getting as result the value 6. So, I tried to print myID to see what was in it. I used print(myID) and I as result I got: 1 6 6 I know that the correct id number is 1, but I don't know where these others 6 came from. Can anyone explain me why this happens and how can I do to have only the correct id number? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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 -~----------~----~----~----~------~----~------~--~---

