Skip to content
Permalink
Browse files

Fix non-dynamic default values

Fix #15355
  • Loading branch information
m-kuhn committed May 13, 2017
1 parent 60bbf67 commit 02c8ac8dda959ab2c91ce25dd2be114b68a69b67
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/postgres/qgspostgresprovider.cpp
@@ -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();
}
}

@@ -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() )
{

0 comments on commit 02c8ac8

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