Skip to content
Permalink
Browse files

[Postgres] fix writing default value when primary key has varchar col…

…umns

kudos to @m-kuhn to find and solve this
  • Loading branch information
3nids committed Oct 26, 2016
1 parent a042c9d commit f456932514c750d4b077a9daaea5ddfbbad3f1c8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -1872,7 +1872,7 @@ bool QgsPostgresProvider::addFeatures( QgsFeatureList &flist )
values += delim + QStringLiteral( "$%1" ).arg( defaultValues.size() + offset );
delim = ',';
fieldId << idx;
defaultValues << defaultValue( idx ).toString();
defaultValues << quotedValue( defaultValue( idx ) );
}
}

0 comments on commit f456932

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