]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
bulk_save->return_defaults does not populate server defaults
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 10 Sep 2021 14:07:15 +0000 (10:07 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 10 Sep 2021 14:07:15 +0000 (10:07 -0400)
commit4cca61c93d0f35f351cc890fd4d2d6fd6e27d734
tree4cd92973c13f92bd3b463d864f3be34db15f6589
parent9ca7be23af16e3cf9580f64d71a588b7cb708f96
bulk_save->return_defaults does not populate server defaults

it fetches them but doesn't put them on the objects, which
is likely a bug, however i have no intention of working
on the bulk methods.   Add more documentation to strongly
discourage these methods in favor of more explicit bulk
approaches, e.g. using an insert() construct directly.

Fixes: #6273
Change-Id: I83eac9319f4e35111302cc81471ecaf19514ce86
lib/sqlalchemy/orm/session.py