]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Reflect table can reflect table with no columns
authorSumit Khanna <ksumeet40@gmail.com>
Mon, 4 Oct 2021 15:14:38 +0000 (11:14 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 14 Oct 2021 18:10:15 +0000 (14:10 -0400)
commit7f25fcadafe1b227c27b223696ce3bcc88e47ec7
tree767a99e43857787b12a0e7e56e13cc2e081c70dc
parentde9db9940fbcf32ccd93169d2ed6aa874869b84d
Reflect table can reflect table with no columns

The :meth:`_engine.Inspector.reflect_table` method now supports reflecting
tables that do not have user defined columns. This allows
:meth:`_schema.MetaData.reflect` to properly complete reflection on
databases that contain such tables.   Currently, only PostgreSQL is known
to support such a construct among the common database backends.

Fixes: #3247
Closes: #7118
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/7118
Pull-request-sha: cb8ce01957e9a1453290a7c2728af8c60ef55fa1

Change-Id: I906cebe17d13554d79086b92f3e1e51ffba3e818
doc/build/changelog/unreleased_14/3247.rst [new file with mode: 0644]
lib/sqlalchemy/engine/reflection.py
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/suite/test_reflection.py
test/requirements.py