lenfriends=len(friends_app_users)
db.update('users',number_sent='number_sent+$lenfriends',where='uid=$uid',vars=locals())
db.update('users',number_sent='"number_sent"+$lenfriends',where='uid=$uid',vars=locals())
File "/web/db.py", line 730, in update
self._db_execute(db_cursor, query)
File "/web/db.py", line 472, in _db_execute
for x in sql_query.values()])
psycopg2.ProgrammingError: invalid input syntax for integer:
""number_sent"+$lenfriends"
How do i increment the current value of number_sent by lenfriends
thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---