diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-07-12 18:19:08 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-07-13 10:15:07 -0400 |
| commit | 0e46359cb00b453448e37ec16fce744f73c98581 (patch) | |
| tree | 1be1d75ff64887dc134a9b424c154339b95ba862 /lib/sqlalchemy/sql/selectable.py | |
| parent | ca52e87268fec966f6005b1e4aa30206ae895e9e (diff) | |
| download | sqlalchemy-0e46359cb00b453448e37ec16fce744f73c98581.tar.gz | |
Extract format_constraint truncation rules to ON CONFLICT
Fixed issue where a too-long constraint name rendered as part of the "ON
CONFLICT ON CONSTRAINT" element of the :class:`_postgresql.Insert`
construct due to naming convention generation would not correctly truncate
the name in the same way that it normally renders within a CREATE TABLE
statement, thus producing a non-matching and too-long constraint name.
Fixes: #6755
Change-Id: Ib27014a5ecbc9cd5861a396f8bb49fbc60bf49fe
Diffstat (limited to 'lib/sqlalchemy/sql/selectable.py')
0 files changed, 0 insertions, 0 deletions
