On Mon, Jan 09, 2006 at 09:28:10PM +0000, Helio MC Pereira wrote:
> Have one more question :P Is there a way to raise something like
> "Duplicate Key"? It gives me an exception to big :P
There is no currently.
> """pysqlite2.dbapi2.OperationalError: columns grupo_id, utilizador_id are
> not unique"""
IWBN if someone develops a hierarchy of SQL-related exceptions, and
people start collecting information on how to map DB API driver's
exceptions to SQLObject's exceptions.
But that's a big job...
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ ph...@ph...
Programmers don't die, they just GOSUB without RETURN.
|