[Qgis-developer] Strange behaviour in feature ids when editing PostGIS layer
Sandro Santilli
strk at keybit.net
Fri Feb 27 08:35:37 PST 2015
On Fri, Feb 27, 2015 at 04:57:39PM +0100, Jürgen E. Fischer wrote:
> Hi Sandro,
>
> On Fri, 27. Feb 2015 at 16:43:23 +0100, Sandro Santilli wrote:
> > Victor, I've been thinking of this problem overnight and thought
> > that maybe it could be fixed by having QGIS use UPDATE..RETURNING
> > to update the associated key.
>
> And return it where? In the current vector provider interface only
> ::addFeatures gets QgsFeature (and already updates their id), but
> changeAttributeValues and changeGeometryValues only get attributes or geometry
> along with the original feature id.
Sorry, I hadn't looked at the actual code, was just an idea.
Didn't know there was support for auto-updating IDs already (great!).
In any case the reported behavior does sound like a bug to me, so
I still think it should get a ticket, don't you ?
--strk;
More information about the Qgis-developer
mailing list