Skip to content

Commit

Permalink
fix add features in PG provider broken in recent refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
brushtyler committed Jan 12, 2012
1 parent 4954a6b commit b016c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit b016c0e

Please sign in to comment.