Hi I'm trying to add some features with python to an existing postgis layer:
tsplayer.startEditing() tspprovider.addFeatures(features) committed = tsplayer.commitChanges() The strange thing is that "committed" is "True" even if the features were not added (because of violating a unique constraint) and dialog popped up: ERROR: duplicate key value violates unique constraint "tsp_lv03_nummer_key" Should "committed" not be "False" in this case? regards Stefan -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
