On 11 Aug 2016 6:27 PM, "Denis Rouzaud" <[email protected]> wrote:
>
> 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?

Qt5 build?

Nyall

>
> 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
_______________________________________________
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