Skip to content

Commit

Permalink
use a better default name for the new pk field when creating a new em…
Browse files Browse the repository at this point in the history
…pty PG table
  • Loading branch information
brushtyler committed Jan 13, 2012
1 parent 105b11a commit 3af5694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 3af5694

Please sign in to comment.