Skip to content
Permalink
Browse files

Merge pull request #5568 from m-kuhn/postgresDefaultValues

[postgres] Fix default value check if evaluated server side
  • Loading branch information
m-kuhn committed Nov 9, 2017
2 parents cab807d + b18c891 commit 78622b48161333baf8768ec4b9d83b4edefd797e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -1846,7 +1846,7 @@ bool QgsPostgresProvider::skipConstraintCheck( int fieldIndex, QgsFieldConstrain
{
if ( providerProperty( EvaluateDefaultValues, false ).toBool() )
{
return mDefaultValues.contains( fieldIndex );
return !mDefaultValues.value( fieldIndex ).isEmpty();
}
else
{

0 comments on commit 78622b4

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