forked from sqlalchemy/sqlalchemy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
accommodate False conditions for unique / index merge
Fixed issue in ORM annotated declarative where using :func:`_orm.mapped_column()` with an :paramref:`_orm.mapped_column.index` or :paramref:`_orm.mapped_column.unique` setting of False would be overridden by an incoming ``Annotated`` element that featured that parameter set to ``True``, even though the immediate :func:`_orm.mapped_column()` element is more specific and should take precedence. The logic to reconcile the booleans has been enhanced to accommodate a local value of ``False`` as still taking precedence over an incoming ``True`` value from the annotated element. Fixes: sqlalchemy#11091 Change-Id: I15cda4a0a07a289015c0a09bbe3ca2849956604e (cherry picked from commit e4c4bd0)
- Loading branch information
Showing
5 changed files
with
96 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. change:: | ||
:tags: bug, orm | ||
:tickets: 11091 | ||
|
||
Fixed issue in ORM annotated declarative where using | ||
:func:`_orm.mapped_column()` with an :paramref:`_orm.mapped_column.index` | ||
or :paramref:`_orm.mapped_column.unique` setting of False would be | ||
overridden by an incoming ``Annotated`` element that featured that | ||
parameter set to ``True``, even though the immediate | ||
:func:`_orm.mapped_column()` element is more specific and should take | ||
precedence. The logic to reconcile the booleans has been enhanced to | ||
accommodate a local value of ``False`` as still taking precedence over an | ||
incoming ``True`` value from the annotated element. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters