diff options
author | Federico Caselli <cfederico87@gmail.com> | 2021-10-10 10:41:13 +0200 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-10-31 12:18:02 -0400 |
commit | de61582933b800272cc818d36de9e0b7f86aa4fe (patch) | |
tree | a849fa02e7b989f764072bdb1ff3226d55c6099e /lib/sqlalchemy/dialects/postgresql/psycopg2cffi.py | |
parent | cdce33e2ccb60365f12eb07c0b86fdc2b89b5033 (diff) | |
download | sqlalchemy-de61582933b800272cc818d36de9e0b7f86aa4fe.tar.gz |
The ``has_table`` method now also checks views
The :meth:`_engine.Inspector.has_table` method will now consistently check
for views of the given name as well as tables. Previously this behavior was
dialect dependent, with PostgreSQL, MySQL/MariaDB and SQLite supporting it,
and Oracle and SQL Server not supporting it. Third party dialects should
also seek to ensure their :meth:`_engine.Inspector.has_table` method
searches for views as well as tables for the given name.
Fixes: #7161
Change-Id: I9e523c76741b19596c81ef577dc6f0823e44183b
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/psycopg2cffi.py')
0 files changed, 0 insertions, 0 deletions