summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-04-27 20:58:13 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-04-27 20:58:13 -0400
commit32e0a1624bf1ae3cb6309062adefd2f5c89b541c (patch)
tree3fb898492dd4d825096f69b7d733c49a56695d9a /lib/sqlalchemy/sql/compiler.py
parentc926f0a9d8910c67554f053ed0f7902542679f0d (diff)
downloadsqlalchemy-32e0a1624bf1ae3cb6309062adefd2f5c89b541c.tar.gz
import of "sqlalchemy" and "sqlalchemy.orm" works.
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r--lib/sqlalchemy/sql/compiler.py16
1 files changed, 3 insertions, 13 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py
index e5a2da366..b3f74ceef 100644
--- a/lib/sqlalchemy/sql/compiler.py
+++ b/lib/sqlalchemy/sql/compiler.py
@@ -1869,22 +1869,12 @@ class DDLCompiler(engine.Compiled):
if column.primary_key:
first_pk = True
except exc.CompileError as ce:
-# start Py3K
- raise exc.CompileError("(in table '%s', column '%s'): %s"
- % (
+ util.raise_from_cause(
+ exc.CompileError("(in table '%s', column '%s'): %s" % (
table.description,
column.name,
ce.args[0]
- )) from ce
-# end Py3K
-# start Py2K
-# raise exc.CompileError("(in table '%s', column '%s'): %s"
-# % (
-# table.description,
-# column.name,
-# ce.args[0]
-# )), None, sys.exc_info()[2]
-# end Py2K
+ )))
const = self.create_table_constraints(table)
if const: