diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-05-10 22:03:18 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-05-10 22:05:45 -0400 |
commit | 73a273c90cda2369ec071435edd9c6dc5c1d31c4 (patch) | |
tree | 27a79e1c0800fffb6a1bce70830b779c0de16251 /lib/sqlalchemy/dialects/postgresql/json.py | |
parent | e00591ec27f63d9cc851bbb3cf4824bd5644a8b8 (diff) | |
download | sqlalchemy-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 'lib/sqlalchemy/dialects/postgresql/json.py')
0 files changed, 0 insertions, 0 deletions