Skip to content

Commit

Permalink
[postgres] Fix default value check if evaluated server side
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Nov 9, 2017
1 parent e1ffb28 commit b18c891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
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 b18c891

Please sign in to comment.