Hi,
I'm unable to figure out how to check when a simple db insert() was
successful. In my code below, regardless of whether the db insert is
successful or not, the code after 'if new_record:' always executes..
new_record = db.abc.insert(a='this', b='that', c='theotherthing')
if new_record:
How can I code "if db insert was successful:" ?
Thanks,
-J
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.