On Dec 16, 5:07 am, mdipierro <[email protected]> wrote: > I added this in trunk as suggested (in a try except to avoid > problems). Before I make this official I would like people to run a > test > > db=SQLDB('.....') > db.define_table('t',SQLField('a')) > db.t.insert(a='test') > print db(db.t.id>0).delete() > > does it output 1 on > > sqlite: YES > postgresql: ? > mysql: ? > mssql: ? > firebird: ? > oracle: ? >
mysql: YES I note that for mysql (as well as delete() returning the number of rows deleted): insert() returns the id of the new record update() returns the number of rows updated --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

