Skip to content

Commit

Permalink
follow up f243b8448e2
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Oct 21, 2017
1 parent f243b84 commit 25b0421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -1304,7 +1304,7 @@ bool QgsPostgresProvider::determinePrimaryKey()

QgsPostgresProvider::Relkind type = relkind();

if ( type == Relkind::OrdinaryTable )
if ( type == Relkind::OrdinaryTable || type == Relkind::PartitionedTable )
{
QgsDebugMsg( "Relation is a table. Checking to see if it has an oid column." );

Expand Down Expand Up @@ -1339,7 +1339,7 @@ bool QgsPostgresProvider::determinePrimaryKey()
}
}
}
else if ( type == Relkind::View || type == Relkind::MaterializedView || type == Relkind::PartitionedTable )
else if ( type == Relkind::View || type == Relkind::MaterializedView )
{
determinePrimaryKeyFromUriKeyColumn();
}
Expand Down

0 comments on commit 25b0421

Please sign in to comment.