summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/schema.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2008-03-04 22:50:14 +0000
committerJason Kirtland <jek@discorporate.us>2008-03-04 22:50:14 +0000
commite193854f952e05175bcdedf45944d0ccb4e92994 (patch)
tree68f9c41728e17b335bf91d9e01ea832c653aab69 /lib/sqlalchemy/schema.py
parent38606681e7d56b8dd1d2091c6b2d2cf387e04830 (diff)
downloadsqlalchemy-e193854f952e05175bcdedf45944d0ccb4e92994.tar.gz
- Tweaked error messaging for unbound DDL().execute()
Diffstat (limited to 'lib/sqlalchemy/schema.py')
-rw-r--r--lib/sqlalchemy/schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py
index 6d43afe45..86bef287e 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