Ticket #1328 (closed bug: fixed)

Opened 5 years ago

Last modified 4 years ago

PostGIS layer editing - prepared statement "addfeatures" is not removed on failed saving added features

Reported by: smizuno Owned by: nobody
Priority: critical: causes crash or data corruption Milestone:
Component: Data Provider Version: Trunk
Keywords: Cc:
Platform Version: Platform: All
Must Fix for Release: No Awaiting user input: no

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.

Change History

Changed 5 years ago by jef

  • status changed from new to closed
  • resolution set to fixed

fixed in r9381

Changed 4 years ago by anonymous

  • milestone Version 1.0.0 deleted

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.