]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
detect and raise for version_id is NULL
authorDiana Clarke <diana.joan.clarke@gmail.com>
Tue, 14 Mar 2017 17:03:11 +0000 (13:03 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 22 May 2017 20:25:54 +0000 (16:25 -0400)
commit990d4c799f2a48530616e289418af395d168b56c
tree83fc46bcf8165f60087157a882d432dee7e4ec0d
parent92f789eba4a46a5c33c807c2f02c45b03cf9ee79
detect and raise for version_id is NULL

The versioning feature does not support NULL for the version counter.
An exception is now raised if the version id is programmatic and
was set to NULL for an UPDATE.  Pull request courtesy Diana Clarke.

Fixes: #3673
Change-Id: I8b0da56234a7c7f5e7fde35536e09a6216a5e48a
doc/build/changelog/changelog_12.rst
lib/sqlalchemy/orm/persistence.py
test/orm/test_versioning.py