Skip to content

Commit

Permalink
Merge pull request #1428 from MaximBalaganskiy/patch-1
Browse files Browse the repository at this point in the history
fix(postgre): correctly count number of constraints
  • Loading branch information
borisdj authored Mar 5, 2024
2 parents ec3c545 + 140e8e7 commit a32d8ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public static string CountUniqueConstrain(TableInfo tableInfo)
bool usePG_Catalog = true; // PG_Catalog used instead of Information_Schema
if (usePG_Catalog)
{
q = @"SELECT COUNT(*)
q = @"SELECT COUNT(distinct c.conname)
FROM pg_catalog.pg_namespace nr,
pg_catalog.pg_class r,
pg_catalog.pg_attribute a,
Expand Down

0 comments on commit a32d8ec

Please sign in to comment.