Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Vixtir committed Mar 29, 2023
2 parents 4687561 + cca31d5 commit fb73831
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion odd_collector_azure/adapters/azure_sql/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
left join INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE t
on
c.table_name = t.table_name and
c.column_name = t.column_name
c.column_name = t.column_name and
t.constraint_name like 'PK%'
where c.table_schema <> 'sys' and c.table_name = '{table_name}'
"""

Expand Down

0 comments on commit fb73831

Please sign in to comment.