Skip to content

Commit 3af5694

Browse files
committedJan 13, 2012
use a better default name for the new pk field when creating a new empty PG table
1 parent 105b11a commit 3af5694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2802,7 +2802,7 @@ QgsVectorLayerImport::ImportError QgsPostgresProvider::createEmptyLayer(
28022802
if ( primaryKey.isEmpty() )
28032803
{
28042804
int index = 0;
2805-
QString pk = primaryKey = "pk";
2805+
QString pk = primaryKey = "id";
28062806
for ( QgsFieldMap::const_iterator fldIt = fields.begin(); fldIt != fields.end(); ++fldIt )
28072807
{
28082808
if ( fldIt.value().name() == pk )

0 commit comments

Comments
 (0)
Please sign in to comment.