From: Jason Kirtland Date: Tue, 4 Mar 2008 22:50:14 +0000 (+0000) Subject: - Tweaked error messaging for unbound DDL().execute() X-Git-Tag: rel_0_4_4~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e193854f952e05175bcdedf45944d0ccb4e92994;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - Tweaked error messaging for unbound DDL().execute() --- diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py index 6d43afe45a..86bef287e3 100644 --- a/lib/sqlalchemy/schema.py +++ b/lib/sqlalchemy/schema.py @@ -1747,7 +1747,7 @@ def _bind_or_error(schemaitem): item = '%s %r' % (name, label) else: item = name - if isinstance(schemaitem, MetaData): + if isinstance(schemaitem, (MetaData, DDL)): bindable = "the %s's .bind" % name else: bindable = "this %s's .metadata.bind" % name