mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-05 23:37:20 -04:00
- Tweaked error messaging for unbound DDL().execute()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user