]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure mapping has no version_id_generator when checking missing version_id
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 21 Feb 2018 16:16:09 +0000 (11:16 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 22 Feb 2018 16:36:34 +0000 (11:36 -0500)
commit8ab7c9639881e75eb93014438d30cc7208d3f796
treebcb4ab339fe963bcdb1d5bb38edfa5c5de263298
parent191dd0055c05f51fa985d4e24f107faa58743022
Ensure mapping has no version_id_generator when checking missing version_id

Fixed 1.2 regression in ORM versioning feature where a mapping against a
:func:`.select` or :func:`.alias` that also used a versioning column
against the underlying table would fail due to the check added as part of
:ticket:`3673`.

See also #4194 and #4195 for related issues found regarding
mapped selects and versioning.

Change-Id: Ifabe9a5c8c1bfa72db5029faa7a5dbf71f0a7ca0
Fixes: #4193
doc/build/changelog/unreleased_12/4193.rst [new file with mode: 0644]
lib/sqlalchemy/orm/persistence.py
test/orm/test_versioning.py