Skip to content

Commit f22c62a

Browse files
committed
fix #7160
1 parent b630692 commit f22c62a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/providers/postgres/qgspostgresconn.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ bool QgsPostgresConn::getTableInfo( bool searchGeometryColumnsOnly, bool searchP
388388
.arg( srid )
389389
.arg( relkind ) );
390390

391+
layerProperty.pkCols.clear();
391392
layerProperty.type = type;
392393
layerProperty.schemaName = schemaName;
393394
layerProperty.tableName = tableName;
@@ -403,6 +404,7 @@ bool QgsPostgresConn::getTableInfo( bool searchGeometryColumnsOnly, bool searchP
403404
continue;
404405
}
405406
}
407+
406408
layerProperty.srid = srid;
407409
layerProperty.sql = "";
408410

0 commit comments

Comments
 (0)