Skip to content
Permalink
Browse files

[postgres] Fix default value check if evaluated server side

  • Loading branch information
m-kuhn committed Nov 9, 2017
1 parent e1ffb28 commit b18c891dfc87089bc234ea59450e2ea0c90087f5
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 b18c891

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