lots of new patches in trunk.

You can now do:

python web2py.py -S atest
>>> db=SQLDB()
>>> db.define_table('a',SQLField('b'),SQLField('c','integer'))
>>> db.a.insert(b='test',c=1)
1
>>> db(db.a.id>0)._update(c=db.a.c+1)
'UPDATE a SET c=a.c+1 WHERE a.id>0;'
>>> db(db.a.id>0).update(c=db.a.c+1)   ### notice the value is an expression!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to