diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-04-27 20:58:13 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-04-27 20:58:13 -0400 |
commit | 32e0a1624bf1ae3cb6309062adefd2f5c89b541c (patch) | |
tree | 3fb898492dd4d825096f69b7d733c49a56695d9a /lib/sqlalchemy/sql/compiler.py | |
parent | c926f0a9d8910c67554f053ed0f7902542679f0d (diff) | |
download | sqlalchemy-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.py | 16 |
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: |