Skip to content
Permalink
Browse files

Fix primary key search

  • Loading branch information
manisandro committed Apr 14, 2015
1 parent cfe397e commit 265c253995ae755194df514a07ecaad35fd3ec57
@@ -2979,7 +2979,7 @@ QgsVectorLayerImport::ImportError QgsPostgresProvider::createEmptyLayer(
{
// it already exists, try again with a new name
primaryKey = QString( "%1_%2" ).arg( pk ).arg( index++ );
fldIdx = 0;
fldIdx = -1; // it is incremented in the for loop, i.e. restarts at 0
}
}
}
@@ -157,7 +157,7 @@ QgsSpatiaLiteProvider::createEmptyLayer(
{
// it already exists, try again with a new name
primaryKey = QString( "%1_%2" ).arg( pk ).arg( index++ );
fldIdx = 0;
fldIdx = -1; // it is incremented in the for loop, i.e. restarts at 0
}
}
}

0 comments on commit 265c253

Please sign in to comment.
You can’t perform that action at this time.