]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Added a new type-level modifier :meth:`.TypeEngine.evaluates_none`
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 19 Sep 2015 17:12:08 +0000 (13:12 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 19 Sep 2015 20:27:51 +0000 (16:27 -0400)
commit80aeba3d5e0269eb689d991ca0b8e281715113ed
tree0c6096a8b9b1612a3b05ecf06b831d92938b071f
parent371f1a82c5981156a359f690923840d2627c9a6f
- Added a new type-level modifier :meth:`.TypeEngine.evaluates_none`
which indicates to the ORM that a positive set of None should be
persisted as the value NULL, instead of omitting the column from
the INSERT statement.  This feature is used both as part of the
implementation for :ticket:`3514` as well as a standalone feature
available on any type.  fixes #3250
- add new documentation section illustrating the "how to force null"
 use case of #3250
- alter our change from #3514 so that the class-level flag is now
called "should_evaluate_none"; so that "evaluates_none" is now
a generative method.
doc/build/changelog/changelog_11.rst
doc/build/changelog/migration_11.rst
doc/build/orm/persistence_techniques.rst
lib/sqlalchemy/dialects/postgresql/json.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/sql/type_api.py
test/orm/test_unitofworkv2.py