[mapguide-trac] #836: Allow insert of NULL values

MapGuide Open Source trac_mapguide at osgeo.org
Thu Feb 5 05:35:53 EST 2009


#836: Allow insert of NULL values
-------------------------------+--------------------------------------------
   Reporter:  ksgeograf        |       Owner:       
       Type:  defect           |      Status:  new  
   Priority:  medium           |   Milestone:  2.1  
  Component:  Feature Service  |     Version:  2.0.2
   Severity:  minor            |    Keywords:       
External_id:                   |  
-------------------------------+--------------------------------------------
 The current MapGuide implementation does not allow insertion of NULL
 values, using the "MgInsertFeatures"/"MgUpdateFeatures".

 The reason is that the ServerFeatureUtil::MgPropertyToFdoDataValue fails
 to check for null values.

 The attached patch correctly converts properties of type
 MgNullableProperty to the corresponding FDO null values.

 The patch compiles correctly, but I am unsure if all the tested property
 types actually derive from MgNullableProperty (but they should).

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/836>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list