diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-03-13 02:00:21 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-03-13 02:00:21 +0000 |
| commit | 1fc3d226558837b69ea8234f405b8dd6c8710b0a (patch) | |
| tree | 05fdbf9e9206a124feb84ada0abf3c52db08551f /lib/sqlalchemy/exceptions.py | |
| parent | a579e8f687833257757d53e772698f652e90472a (diff) | |
| download | sqlalchemy-1fc3d226558837b69ea8234f405b8dd6c8710b0a.tar.gz | |
oracle is requiring dictionary params to be in a clean dict, added conversion
some fixes to unit tests
Diffstat (limited to 'lib/sqlalchemy/exceptions.py')
| -rw-r--r-- | lib/sqlalchemy/exceptions.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/exceptions.py b/lib/sqlalchemy/exceptions.py index 6883293ec..e270225d8 100644 --- a/lib/sqlalchemy/exceptions.py +++ b/lib/sqlalchemy/exceptions.py @@ -17,6 +17,8 @@ class SQLError(SQLAlchemyError): self.statement = statement self.params = params self.orig = orig + def __str__(self): + return SQLAlchemyError.__str__(self) + " " + repr(self.statement) + " " + repr(self.params) class ArgumentError(SQLAlchemyError): """raised for all those conditions where invalid arguments are sent to constructed @@ -38,4 +40,4 @@ class AssertionError(SQLAlchemyError): class DBAPIError(SQLAlchemyError): """something weird happened with a particular DBAPI version""" - pass
\ No newline at end of file + pass |
