diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-06-25 11:12:40 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-06-25 12:45:56 -0400 |
commit | ca56d8dc32f939b2bdb1f590986d4c46d280d186 (patch) | |
tree | 304b559f58a91e90747fbc371727dd6fe51dc39e /lib/sqlalchemy/dialects/postgresql/json.py | |
parent | 660a340bff8fcefd2826032e75210c0924a2335e (diff) | |
download | sqlalchemy-ca56d8dc32f939b2bdb1f590986d4c46d280d186.tar.gz |
Use index name to determine if an index is for the PK
Fixed bug in Oracle dialect where indexes that contain the full set of
primary key columns would be mistaken as the primary key index itself,
which is omitted, even if there were multiples. The check has been refined
to compare the name of the primary key constraint against the index name
itself, rather than trying to guess based on the columns present in the
index.
Fixes: #5421
Change-Id: I47c2ccdd0b13977cfd9ef249d4de06371c4fb241
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/json.py')
0 files changed, 0 insertions, 0 deletions