[Qgis-developer] Python QgsVectorLayer.commitChanges() problem
Stefan Ziegler
st.ziegler at gmx.net
Thu Jul 28 04:45:33 EDT 2011
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
More information about the Qgis-developer
mailing list