Skip to content

Commit 78622b4

Browse files
authored
Merge pull request #5568 from m-kuhn/postgresDefaultValues
[postgres] Fix default value check if evaluated server side
2 parents cab807d + b18c891 commit 78622b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1846,7 +1846,7 @@ bool QgsPostgresProvider::skipConstraintCheck( int fieldIndex, QgsFieldConstrain
18461846
{
18471847
if ( providerProperty( EvaluateDefaultValues, false ).toBool() )
18481848
{
1849-
return mDefaultValues.contains( fieldIndex );
1849+
return !mDefaultValues.value( fieldIndex ).isEmpty();
18501850
}
18511851
else
18521852
{

0 commit comments

Comments
 (0)