Opened 14 years ago

Closed 13 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 14 years ago.
add function SetFeatureViaUpdate

Download all attachments as: .zip

Change History (5)

comment:1 by bishop, 14 years ago

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

by bishop, 14 years ago

add function SetFeatureViaUpdate

comment:2 by bishop, 14 years ago

Version: 1.5.2svn-trunk

comment:3 by Even Rouault, 13 years ago

Owner: changed from warmerdam to Even Rouault

comment:4 by Even Rouault, 13 years ago

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.