We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 105b11a commit 3af5694Copy full SHA for 3af5694
src/providers/postgres/qgspostgresprovider.cpp
@@ -2802,7 +2802,7 @@ QgsVectorLayerImport::ImportError QgsPostgresProvider::createEmptyLayer(
2802
if ( primaryKey.isEmpty() )
2803
{
2804
int index = 0;
2805
- QString pk = primaryKey = "pk";
+ QString pk = primaryKey = "id";
2806
for ( QgsFieldMap::const_iterator fldIt = fields.begin(); fldIt != fields.end(); ++fldIt )
2807
2808
if ( fldIt.value().name() == pk )
0 commit comments