Skip to content
Permalink
Browse files

Fix primary key search

(cherry picked from commit 265c253)
  • Loading branch information
manisandro authored and jef-n committed Apr 14, 2015
1 parent 1a827ab commit f528d2b669d79f3310207964b39cc8b110a51ca7
@@ -2968,7 +2968,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 f528d2b

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