<p dir="ltr"></p>
<p dir="ltr">On 11 Aug 2016 6:27 PM, "Denis Rouzaud" <<a href="mailto:denis.rouzaud@gmail.com">denis.rouzaud@gmail.com</a>> wrote:<br>
><br>
> Hi, <br>
><br>
> I just noticed that <a href="http://feature.id">feature.id</a>() always return 1 when iterating on a postgresql layer which has no single column primary key.<br>
><br>
> Using the demo data qgis_test.book_authors, in console writing, <br>
><br>
> for f in iface.activeLayer().getFeatures():<br>
> <a href="http://f.id">f.id</a>()<br>
><br>
> prints out<br>
><br>
> 1<br>
> 1<br>
> 1<br>
> 1<br>
><br>
> Anyone knows where the issue come from?</p>
<p dir="ltr">Qt5 build?</p>
<p dir="ltr">Nyall</p>
<p dir="ltr">><br>
> Thanks,<br>
><br>
> Denis<br>
><br>
><br>
> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></p>