Skip to content

Commit fb7845b

Browse files

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
@@ -613,7 +613,7 @@ void QgsPostgresProvider::getFeatureAttributes(int key, int &row,
613613
{
614614
// Add the attribute to the feature
615615
QString val = QString::fromUtf8(PQgetvalue(attr, 0, 0));
616-
f.addAttribute(i, QgsFeatureAttribute(fld, val));
616+
f.addAttribute(*iter, QgsFeatureAttribute(fld, val));
617617
}
618618
PQclear(attr);
619619
}

0 commit comments

Comments
 (0)
Please sign in to comment.