[Fdo-trac] [fdo-trac] #852: Cannot insert features into SQL Server

FDO trac_fdo at osgeo.org
Sun Nov 4 22:59:24 PST 2012


#852: Cannot insert features into SQL Server
---------------------------------+------------------------------------------
   Reporter:  jng                |       Owner:  RomicaDascalescu
       Type:  defect             |      Status:  new             
   Priority:  blocker            |   Milestone:  3.7.0           
  Component:  SQLServer Spatial  |     Version:  3.7.0           
   Severity:  1                  |    Keywords:                  
External_id:                     |  
---------------------------------+------------------------------------------

Comment(by jng):

 Hi Romy,

 Confirmed that this patch removes that particular error message. However,
 this triggers a new error (MgInsertError in MapGuide,
 [http://trac.osgeo.org/mapguide/browser/trunk/MgDev/Server/src/Services/Feature/ServerInsertCommand.cpp#L135
 here]). That error is triggered by class definition not containing any
 identity properties. From what I've seen in the FdoRdbmsFeatureInfoReader,
 the class definition that is created and returned in GetClassDefinition()
 does not check for this, so the class definition that is returned to
 MapGuide has no identity properties and triggers the MgInsertError

 I've attached a patch to populate the identity properties of the class
 definition that's returned. Not sure if I'm correctly using the FdoSmLp
 classes here. My test seems to say yes.

-- 
Ticket URL: <http://trac.osgeo.org/fdo/ticket/852#comment:3>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list