<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><font size="-1"><font face="Verdana">Hi, </font></font></p>
<p>I just noticed that feature.id() always return 1 when iterating
on a postgresql layer which has no single column primary key.</p>
<p>Using the demo data qgis_test.book_authors, in console writing, </p>
<p>for f in iface.activeLayer().getFeatures():<br>
f.id()</p>
<p>prints out<br>
</p>
<p>1<br>
1<br>
1<br>
1</p>
<p>Anyone knows where the issue come from?</p>
<p>Thanks,</p>
<p>Denis<br>
</p>
</body>
</html>