]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
disallow same-named columns, unchecked replacement in Table
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 3 Dec 2022 14:11:14 +0000 (09:11 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 4 Dec 2022 15:45:35 +0000 (10:45 -0500)
commit1284fa377e53f03cec061d7af16f269ad73fa7b9
tree40e421506cd20f3cf8c12cba834062cd1bb0505c
parent96db7cdd53ee9004be66545989b4ac5632bb7ccf
disallow same-named columns, unchecked replacement in Table

Fixed issue where table reflection using :paramref:`.Table.extend_existing`
would fail to deduplicate a same-named column if the existing
:class:`.Table` used a separate key. The
:paramref:`.Table.autoload_replace` parameter would allow the column to be
skipped but under no circumstances should a :class:`.Table` ever have the
same-named column twice.

Additionally, changed deprecation warnings to exceptions
as were implemented in I1d58c8ebe081079cb669e7ead60886ffc1b1a7f5 .

Fixes: #8925
Change-Id: I83d0f8658177a7ffbb06e01dbca91377d1a98d49
doc/build/changelog/unreleased_20/8925.rst [new file with mode: 0644]
doc/build/changelog/whatsnew_20.rst
lib/sqlalchemy/exc.py
lib/sqlalchemy/sql/base.py
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/testing/__init__.py
lib/sqlalchemy/testing/config.py
test/base/test_except.py
test/engine/test_reflection.py
test/orm/declarative/test_basic.py
test/sql/test_metadata.py