File tree 1 file changed +1
-7
lines changed
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -1615,9 +1615,6 @@ bool QgsPostgresProvider::addFeatures( QgsFeatureList &flist )
1615
1615
for ( int idx = 0 ; idx < attributevec.count (); ++idx )
1616
1616
{
1617
1617
QVariant v = attributevec[idx];
1618
- if ( !v.isValid () )
1619
- continue ;
1620
-
1621
1618
if ( fieldId.contains ( idx ) )
1622
1619
continue ;
1623
1620
@@ -1638,9 +1635,6 @@ bool QgsPostgresProvider::addFeatures( QgsFeatureList &flist )
1638
1635
const QgsAttributes &attrs2 = flist[i].attributes ();
1639
1636
QVariant v2 = attrs2[idx];
1640
1637
1641
- if ( !v2.isValid () )
1642
- break ;
1643
-
1644
1638
if ( v2 != v )
1645
1639
break ;
1646
1640
}
@@ -1731,7 +1725,7 @@ bool QgsPostgresProvider::addFeatures( QgsFeatureList &flist )
1731
1725
QVariant value = attrs[ fieldId[i] ];
1732
1726
1733
1727
QString v;
1734
- if ( ! value.isValid () )
1728
+ if ( value.isNull () )
1735
1729
{
1736
1730
const QgsField &fld = field ( fieldId[i] );
1737
1731
v = paramValue ( defaultValues[i], defaultValues[i] );
You can’t perform that action at this time.
0 commit comments