mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
postgres provider: clear primary key for views (potentially fixes #9590)
This commit is contained in:
parent
7138c7aaf0
commit
7f5aac30b1
@ -288,6 +288,7 @@ void QgsPostgresConn::addColumnInfo( QgsPostgresLayerProperty& layerProperty, co
|
||||
QgsDebugMsg( sql );
|
||||
QgsPostgresResult colRes = PQexec( sql );
|
||||
|
||||
layerProperty.pkCols.clear();
|
||||
layerProperty.nSpCols = 0;
|
||||
|
||||
if ( colRes.PQresultStatus() == PGRES_TUPLES_OK )
|
||||
@ -414,7 +415,6 @@ bool QgsPostgresConn::getTableInfo( bool searchGeometryColumnsOnly, bool searchP
|
||||
.arg( srid )
|
||||
.arg( relkind ) );
|
||||
|
||||
layerProperty.pkCols.clear();
|
||||
layerProperty.schemaName = schemaName;
|
||||
layerProperty.tableName = tableName;
|
||||
layerProperty.geometryColName = column;
|
||||
|
Loading…
x
Reference in New Issue
Block a user