Skip to content

Commit

Permalink
Merge pull request #5568 from m-kuhn/postgresDefaultValues
Browse files Browse the repository at this point in the history
[postgres] Fix default value check if evaluated server side
  • Loading branch information
m-kuhn authored Nov 9, 2017
2 parents cab807d + b18c891 commit 78622b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 78622b4

Please sign in to comment.