Skip to content

Commit

Permalink
Fix non-dynamic default values
Browse files Browse the repository at this point in the history
Fix #15355
  • Loading branch information
m-kuhn committed May 13, 2017
1 parent 60bbf67 commit 02c8ac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/postgres/qgspostgresprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,7 @@ bool QgsPostgresProvider::addFeatures( QgsFeatureList &flist )
values += delim + QString( "$%1" ).arg( defaultValues.size() + offset );
delim = ',';
fieldId << idx;
defaultValues << defaultValue( idx ).toString();
defaultValues << defaultValue( idx, true ).toString();
}
}

Expand Down Expand Up @@ -1947,7 +1947,7 @@ bool QgsPostgresProvider::addFeatures( QgsFeatureList &flist )

insert += delim + quotedIdentifier( fieldname );

QString defVal = defaultValue( idx ).toString();
QString defVal = defaultValue( idx, true ).toString();

if ( i == flist.size() )
{
Expand Down

0 comments on commit 02c8ac8

Please sign in to comment.