]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
test support for has_table()->view; backport to 1.4
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 23 Oct 2022 14:34:33 +0000 (10:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 23 Oct 2022 14:35:31 +0000 (10:35 -0400)
commitc02f6b744d304578fe67da2e13d2c02ab71140d2
treee052160b2dd7f0ef836649648479eb22b8b47511
parentbbf68345f4993245689b96cc6c6a50013afa3caa
test support for has_table()->view; backport to 1.4

For 1.4 only; in 2.0 this just refines the test suite a bit.

Fixed regression which occurred throughout the 1.4 series where the
:meth:`.Inspector.has_table` method, which historically reported on views
as well, stopped working for SQL Server. The issue is not present in the
2.0 series which uses a different reflection architecture. Test support is
added to ensure ``has_table()`` remains working per spec re: views.

Fixes: #8700
Change-Id: I119a91ec07911edb08cf0799234827fec9ea1195
doc/build/changelog/unreleased_14/8700.rst [new file with mode: 0644]
lib/sqlalchemy/testing/suite/test_reflection.py