Skip to content
Permalink
Browse files
postgres provider: clear primary key for views (potentially fixes #9590)
  • Loading branch information
jef-n committed Feb 18, 2014
1 parent 7138c7a commit 7f5aac30b1ab05cb901f2ea349a0badbef3d39ba
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresconn.cpp
@@ -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;

0 comments on commit 7f5aac3

Please sign in to comment.