[Qgis-developer] Post-processing queries on postgis layers (after insert/delete/update)

Jürgen E. Fischer jef at norbit.de
Wed Mar 18 11:16:56 PDT 2015


Hi Olivier,

On Wed, 18. Mar 2015 at 18:40:20 +0100, Olivier Dalang wrote:
> Am I doing something wrong ?

Not really - just something that isn't expected.

> Or is QGIS using some other way to get back the ID of a new feature ? Any
> idea of what that could be ?

It retrieves the default values for all attributes (which might be a call to
nextval), executes them and uses the result for the insert.  So it knows
the id before the insert and can update the feature with it.


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                         
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150318/8c83c6cb/attachment.pgp>


More information about the Qgis-developer mailing list