Skip to content
Permalink
Browse files

fix add features in PG provider broken in recent refactoring

  • Loading branch information
brushtyler committed Jan 12, 2012
1 parent 4954a6b commit b016c0e6ee038c10ae80813875e26ea982a7ba25
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -1816,7 +1816,7 @@ bool QgsPostgresProvider::addFeatures( QgsFeatureList &flist )
foreach( int idx, mPrimaryKeyAttrs )
{
insert += delim + quotedIdentifier( field( idx ).name() );
values += delim + QString( "$%1" ).arg( offset++ );
values += delim + QString( "$%1" ).arg( defaultValues.size() + offset );
delim = ",";
fieldId << idx;
defaultValues << defaultValue( idx ).toString();

0 comments on commit b016c0e

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