On Tue, Aug 25, 2015 at 12:14 PM, Salvatore Larosa <[email protected]> wrote:
> Hi all,
>
> I just noticed that in 2.10 (and developing) version is not possible
> to change geometries for the postgres data provider while all work
> fine in LTR. The following code returns False in 2.10 and master
> version (I get superuser permissions on the database):
>
>>>> vl = iface.activeLayer()
>>>> provider = vl.dataProvider()
>>>> provider.capabilities() & QgsVectorDataProvider.ChangeGeometries
>
> Anyone confirms?

Checking deeper I realized that the different behavior between master
and LTR is due to this commit [0].
Why it is not possible to modify the existing geometries if the
primary key is not present?

Just wondering. Thanks.

[0] - 
https://github.com/qgis/QGIS/commit/2844005e805709bb39b95aef6a7e5a72777b8b0f


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to