summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-01-10 13:16:43 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2020-01-11 21:58:12 -0500
commit615ec3e640373bcb10311ba1d5cfc72e570b6534 (patch)
tree81c038b1c6f379f961b1fead75cf4956dd69dba0 /lib/sqlalchemy/dialects/postgresql/base.py
parent48b37a062a26a41bd5c9243d2365a6c06a77a347 (diff)
downloadsqlalchemy-615ec3e640373bcb10311ba1d5cfc72e570b6534.tar.gz
Fixes for table-bound version_id_col against mapped selectable
Fixed bug where a versioning column specified on a mapper against a :func:`.select` construct where the version_id_col itself were against the underlying table would incur additional loads when accessed, even if the value were locally persisted by the flush. The actual fix is a result of the changes in :ticket:`4617`, by fact that a :func:`.select` object no longer has a ``.c`` attribute and therefore does not confuse the mapper into thinking there's an unknown column value present. Fixed bug in ORM versioning feature where assignment of an explicit version_id for a counter configured against a mapped selectable where version_id_col is against the underlying table would fail if the previous value were expired; this was due to the fact that the mapped attribute would not be configured with active_history=True. Fixes: #4194 Fixes: #4195 Change-Id: I214879f441f905bdd85a7411f90352af7399051d
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
0 files changed, 0 insertions, 0 deletions