Skip to content
Permalink
Browse files

postgres provider: fix default value assignment

  • Loading branch information
jef-n committed Jan 17, 2012
1 parent 6c9663c commit 70288272f75251f9bb5e03c274cdf1ad1dafd047
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -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 )

0 comments on commit 7028827

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