Hi, 

I just noticed that feature.id() always return 1 when iterating on a
postgresql layer which has no single column primary key.

Using the demo data qgis_test.book_authors, in console writing, 

for f in iface.activeLayer().getFeatures():
  f.id()

prints out

1
1
1
1

Anyone knows where the issue come from?

Thanks,

Denis

_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to