summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/exceptions.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-03-03 21:02:26 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-03-03 21:02:26 +0000
commite736817a92797a3a3ce7b1c2cc9622643186f65b (patch)
treed8af6807cd998cf6bc3e5d78428259a49a7c01c6 /lib/sqlalchemy/exceptions.py
parentc8a78834f5a11394105942f9c8d9483451415e12 (diff)
downloadsqlalchemy-e736817a92797a3a3ce7b1c2cc9622643186f65b.tar.gz
- bindparam() names are now repeatable! specify two
distinct bindparam()s with the same name in a single statement, and the key will be shared. proper positional/named args translate at compile time. for the old behavior of "aliasing" bind parameters with conflicting names, specify "unique=True" - this option is still used internally for all the auto-genererated (value-based) bind parameters.
Diffstat (limited to 'lib/sqlalchemy/exceptions.py')
-rw-r--r--lib/sqlalchemy/exceptions.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/exceptions.py b/lib/sqlalchemy/exceptions.py
index e9d7d0c44..08908cdb6 100644
--- a/lib/sqlalchemy/exceptions.py
+++ b/lib/sqlalchemy/exceptions.py
@@ -34,6 +34,11 @@ class ArgumentError(SQLAlchemyError):
pass
+class CompileError(SQLAlchemyError):
+ """Raised when an error occurs during SQL compilation"""
+
+ pass
+
class TimeoutError(SQLAlchemyError):
"""Raised when a connection pool times out on getting a connection."""