Skip to content
Permalink
Browse files

use a better default name for the new pk field when creating a new em…

…pty PG table
  • Loading branch information
brushtyler committed Jan 13, 2012
1 parent 105b11a commit 3af5694e3d649595b18a2899b5f4724133fe3fb8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -2802,7 +2802,7 @@ QgsVectorLayerImport::ImportError QgsPostgresProvider::createEmptyLayer(
if ( primaryKey.isEmpty() )
{
int index = 0;
QString pk = primaryKey = "pk";
QString pk = primaryKey = "id";
for ( QgsFieldMap::const_iterator fldIt = fields.begin(); fldIt != fields.end(); ++fldIt )
{
if ( fldIt.value().name() == pk )

0 comments on commit 3af5694

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