diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-03-03 21:02:26 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-03-03 21:02:26 +0000 |
commit | e736817a92797a3a3ce7b1c2cc9622643186f65b (patch) | |
tree | d8af6807cd998cf6bc3e5d78428259a49a7c01c6 /lib/sqlalchemy/exceptions.py | |
parent | c8a78834f5a11394105942f9c8d9483451415e12 (diff) | |
download | sqlalchemy-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.py | 5 |
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.""" |