mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
follow up f243b8448e2
This commit is contained in:
parent
f243b8448e
commit
25b0421752
@ -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." );
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user