Opened 12 years ago

Closed 12 years ago

#2557 closed enhancement (fixed)

Update feature via update (PG driver)

Reported by: bishop Owned by: Even Rouault
Priority: normal Milestone: 1.7.0
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords: OGR PG
Cc:

Description

While update feature using SetFeatureViaInsert?. This function delete row and insert new one, but if the row have some relations with other table, related rows completed deleted with out creating. To prevetn this:

  1. Add function SetFeatureViaUpdate?

The files stored in 2556 ticket

Attachments (1)

set_feature_via_update_##2557.patch (10.0 KB) - added by bishop 12 years ago.
add function SetFeatureViaUpdate?

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 years ago by bishop

Summary: Update feature via updateUpdate feature via update (PG driver)

Changed 12 years ago by bishop

add function SetFeatureViaUpdate?

comment:2 Changed 12 years ago by bishop

Version: 1.5.2svn-trunk

comment:3 Changed 12 years ago by Even Rouault

Owner: changed from warmerdam to Even Rouault

comment:4 Changed 12 years ago by Even Rouault

Milestone: 1.7.0
Resolution: fixed
Status: newclosed

Proposed idea implemented in trunk in r17012 (test improved in r17013), although I didn't use the patch, but derived what is done in CreateFeatureViaInsert?(). One major difference with the patch is that the patch skipped the update of empty fields. This was wrong : they must be updated with the null value instread.

Note: See TracTickets for help on using tickets.