Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#1328 closed bug (fixed)

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:
Must Fix for Release: No Platform: All
Platform Version: 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 (2)

comment:1 by jef, 16 years ago

Resolution: fixed
Status: newclosed

fixed in r9381

comment:2 by (none), 15 years ago

Milestone: Version 1.0.0

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.