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

MapGuide Open Source trac_mapguide at osgeo.org
Fri Feb 13 12:53:57 EST 2009


#836: Allow insert of NULL values
-----------------------------+----------------------------------------------
 Reporter:  ksgeograf        |         Owner:  brucedechant
     Type:  defect           |        Status:  closed      
 Priority:  medium           |     Milestone:  2.1         
Component:  Feature Service  |       Version:  2.0.2       
 Severity:  minor            |    Resolution:  fixed       
 Keywords:                   |   External_id:              
-----------------------------+----------------------------------------------
Changes (by brucedechant):

  * status:  assigned => closed
  * resolution:  => fixed

Old description:

> 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).

New description:

 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.

Comment:

 r3615 - Trunk

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


More information about the mapguide-trac mailing list