We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79d37c1 commit b1dac74Copy full SHA for b1dac74
src/providers/postgres/qgspostgresprovider.cpp
@@ -1785,12 +1785,12 @@ bool QgsPostgresProvider::addFeatures( QgsFeatureList &flist )
1785
if ( value.isNull() )
1786
{
1787
const QgsField &fld = field( attrIdx );
1788
- v = paramValue( defaultValues[ attrIdx ], defaultValues[ attrIdx ] );
+ v = paramValue( defaultValues[ i ], defaultValues[ i ] );
1789
features->setAttribute( attrIdx, convertValue( fld.type(), v ) );
1790
}
1791
else
1792
1793
- v = paramValue( value.toString(), defaultValues[ attrIdx ] );
+ v = paramValue( value.toString(), defaultValues[ i ] );
1794
1795
if ( v != value.toString() )
1796
0 commit comments