diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2020-10-12 19:51:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@bbpush.zzzcomputing.com> | 2020-10-12 19:51:53 +0000 |
commit | 3fcdb7cca05de3a90c4f3b9f96ae680618a26c41 (patch) | |
tree | 08b06b18589d8e4da906bda25ba1e3c5de144fa6 /lib/sqlalchemy/sql/base.py | |
parent | 9e82f32f274e649b04740c819d21ba232c89cfff (diff) | |
parent | c76e3776f52d0d69c8c4932ba53626d7190cf5f4 (diff) | |
download | sqlalchemy-3fcdb7cca05de3a90c4f3b9f96ae680618a26c41.tar.gz |
Merge "Deprecate bound metadata"
Diffstat (limited to 'lib/sqlalchemy/sql/base.py')
-rw-r--r-- | lib/sqlalchemy/sql/base.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/base.py b/lib/sqlalchemy/sql/base.py index f912163bc..ba1107eac 100644 --- a/lib/sqlalchemy/sql/base.py +++ b/lib/sqlalchemy/sql/base.py @@ -1485,6 +1485,11 @@ class ColumnSet(util.ordered_column_set): def _bind_or_error(schemaitem, msg=None): + + util.warn_deprecated_20( + "The ``bind`` argument for schema methods that invoke SQL " + "against an engine or connection will be required in SQLAlchemy 2.0." + ) bind = schemaitem.bind if not bind: name = schemaitem.__class__.__name__ |