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 22b9027 commit 5768c5a6e7dae24a1ab2ae614da7a87dad2c1020
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 << quotedValue( defaultValue( idx ) );
}
}

0 comments on commit 5768c5a

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