Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
postgres provider: fix default value assignment
  • Loading branch information
jef-n committed Jan 17, 2012
1 parent 6c9663c commit 7028827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -1949,7 +1949,7 @@ bool QgsPostgresProvider::addFeatures( QgsFeatureList &flist )
}

for ( int i = 0; i < fieldId.size(); i++ )
params << paramValue( attributevec[ fieldId[i] ].toString(), defaultValues[i] );
params << paramValue( attributevec.value( fieldId[i], defaultValues[i] ).toString(), defaultValues[i] );

QgsPostgresResult result = mConnectionRW->PQexecPrepared( "addfeatures", params );
if ( result.PQresultStatus() == PGRES_FATAL_ERROR )
Expand Down

0 comments on commit 7028827

Please sign in to comment.