]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix has_table() false negative for #temp tables
authorGord Thompson <gord@gordthompson.com>
Sat, 9 Oct 2021 22:44:57 +0000 (16:44 -0600)
committermike bayer <mike_mp@zzzcomputing.com>
Tue, 12 Oct 2021 20:23:11 +0000 (20:23 +0000)
commit28c54e028d0adde2383a90209d75fb100315fc50
tree6b2d5185128a9cc385a4d3a4c313a8463f6d060f
parentde9db9940fbcf32ccd93169d2ed6aa874869b84d
Fix has_table() false negative for #temp tables

Fixed issue with :meth:`.Inspector.has_table` where it would return False
if a local temp table with the same name from a different session happened
to be returned first when querying tempdb.  This is a continuation of
:ticket:`6910` which accounted for the temp table existing only in the
alternate session and not the current one.

Fixes: #7168
Change-Id: I19dbb71a63184c6d41822b0e882b7b284ac83786
doc/build/changelog/unreleased_14/7168.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/base.py
test/dialect/mssql/test_reflection.py