Ticket #1328 (closed bug: fixed)
PostGIS layer editing - prepared statement "addfeatures" is not removed on failed saving added features
Description
The situation: a table having a column contraint, such as NOT NULL, on a column other than the object id; used integer type in this case.
1. start Editing
2. add a feature
3. in the Enter Attribute Values dialog make the field that has the constraint have a value that violates the constraint, like a blank field
4. stop Editing, save the changes. Gets error message: ...NULL value in column...
5. in Attribute Table, fix the value to a valid one.
6. now stop Editing, save changes. Gets error message: ...prepared statement "addfeatures" already exists...
Can't get rid of the error until the layer is loaded again.
I was using a multipoint layer, but believe this affects all types.