]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
test transfer of default, insert_default
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 3 Jul 2022 17:55:20 +0000 (13:55 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 3 Jul 2022 17:55:20 +0000 (13:55 -0400)
commit4173a0be5fcf05faea0969fc48f590afbf3313f0
tree8b9bcb8d5fd9291209c7d72bd8760dccb919ab08
parent4b3f204d07d53ae09b59ce8f33b534f26a605cd4
test transfer of default, insert_default

right now "default" goes to Column.default unconditionally
if insert_default is not present, including if dataclasses
are in use where the field effectively now does two things.
This generally works out because Python side default
can be assigned to the object or picked up by Core in any case.
However, we might want to look into later on migrating this
to have the fields act more separately.  I think it's
"OK" for now, will try to doc that this might change.

Change-Id: I30f2085ec79a6464da4d5c578500848c70d55ec2
test/orm/declarative/test_typed_mapping.py