Hi Olivier,

On Tue, 17. Mar 2015 at 18:08:18 +0100, Olivier Dalang wrote:
> I'm able to run SQL queries after inserts using this signal :
> QgsVectorLayer.committedFeaturesAdded(layerId, addedFeatures)

> The problem is that the addedFeatures array contains the features in their
> state BEFORE they were committed.

Are you sure it is?  I didn't try, but the postgres provider already updates
the feature ids of the features passed to QgsPostgresProvider::addFeatures and
and emits those in committedFeaturesAdded afterwards when the commit is run.


Jürgen

-- 
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden             http://www.norbit.de
QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode     
                    

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to