On Saturday, June 19, 2010 8:25:11 AM UTC+2, Narendran wrote:
>
> when I insert a row that violates the unique
> constraint of OFFER_TITLE, it returns
> _mysql_exceptions.IntegrityError, which is a DB specific error
You can generally catch these underlying DAL engine exceptions with:
try:
db.insert(whatever)
except Exception as e:
check the type of e and act upon it
But I agree DAL should abstract a common interface for this, provided a
good one exists.
I vote for indexes first. :)
--
---
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.