]> 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:44:16 +0000 (18:44 -0400)
commitda3c6211864cb2c49a8a702816b4f7c9e4900795
treec6c4c2feeafd6340209790f87aa93588c3140f08
parent7292c1d6c78e3f629b8a20e27711886398dbe399
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
(cherry picked from commit 7afcb39a962d383e5ba04179c1b13131fb08a787)
doc/build/changelog/unreleased_13/4847.rst [new file with mode: 0644]
lib/sqlalchemy/sql/schema.py
test/sql/test_metadata.py