summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2023-05-10 22:03:18 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2023-05-10 22:05:45 -0400
commit73a273c90cda2369ec071435edd9c6dc5c1d31c4 (patch)
tree27a79e1c0800fffb6a1bce70830b779c0de16251 /doc
parente00591ec27f63d9cc851bbb3cf4824bd5644a8b8 (diff)
downloadsqlalchemy-73a273c90cda2369ec071435edd9c6dc5c1d31c4.tar.gz
return empty MappedColumn() at early pep-593 step
Fixed issue in new ORM Annotated Declarative where using a :class:`_schema.ForeignKey` (or other column-level constraint) inside of :func:`_orm.mapped_column` which is then copied out to models via pep-593 ``Annotated`` would apply duplicates of each constraint to the :class:`_schema.Column` as produced in the target :class:`_schema.Table`, leading to incorrect CREATE TABLE DDL as well as migration directives under Alembic. Fixes: #9766 Change-Id: I8a3b2716bf393d1d2b5894f9f72b45fa59df1e08
Diffstat (limited to 'doc')
-rw-r--r--doc/build/changelog/unreleased_20/9766.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/build/changelog/unreleased_20/9766.rst b/doc/build/changelog/unreleased_20/9766.rst
new file mode 100644
index 000000000..588ce1791
--- /dev/null
+++ b/doc/build/changelog/unreleased_20/9766.rst
@@ -0,0 +1,11 @@
+.. change::
+ :tags: bug, orm
+ :tickets: 9766
+
+ Fixed issue in new ORM Annotated Declarative where using a
+ :class:`_schema.ForeignKey` (or other column-level constraint) inside of
+ :func:`_orm.mapped_column` which is then copied out to models via pep-593
+ ``Annotated`` would apply duplicates of each constraint to the
+ :class:`_schema.Column` as produced in the target :class:`_schema.Table`,
+ leading to incorrect CREATE TABLE DDL as well as migration directives under
+ Alembic.