]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- Tweaked error messaging for unbound DDL().execute()
authorJason Kirtland <jek@discorporate.us>
Tue, 4 Mar 2008 22:50:14 +0000 (22:50 +0000)
committerJason Kirtland <jek@discorporate.us>
Tue, 4 Mar 2008 22:50:14 +0000 (22:50 +0000)
lib/sqlalchemy/schema.py

index 6d43afe45a59e68757230fcd81516fa7ff80e1cf..86bef287e33786508833ffd3e153be6bc83f00bf 100644 (file)
@@ -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