]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Catch set_parent_w_dispatch missing
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 6 Sep 2019 22:40:46 +0000 (18:40 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 6 Sep 2019 22:43:58 +0000 (18:43 -0400)
commit7afcb39a962d383e5ba04179c1b13131fb08a787
tree266d62873e14f5a1466ec1f3fa373571bdcbd7f9
parentfc48050e5d0c56fc5a6cd85679859e71961c59eb
Catch set_parent_w_dispatch missing

Added an explicit error message for the case when objects passed to
:class:`.Table` are not :class:`.SchemaItem` objects, rather than resolving
to an attribute error.

Fixes: #4847
Change-Id: I4dcdcee86b64c85ccf12e2ddc3d638563d307991
doc/build/changelog/unreleased_13/4847.rst [new file with mode: 0644]
lib/sqlalchemy/sql/schema.py
test/sql/test_metadata.py