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

FDO trac_fdo at osgeo.org
Fri Nov 2 08:43:53 PDT 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:                     |  
---------------------------------+------------------------------------------
Changes (by RomicaDascalescu):

  * owner:  danstoica => RomicaDascalescu


Comment:

 Hi,

 The reader is using a flag to detect if caller called ReadNext or not.
 This flag was added to the GetClassDefinition() by mistake and because of
 that is caller do not call ReadNext() upfront will get an exception. To
 fix this issue just remove the flag check from GetClassDefinition().

 One other way to avoid this would be to call read next and after that
 GetClassDefinition().

 I've attached the patch to fix this. The patch will be dropped shortly in
 Fdo 3.8 stream.

 Thanks,
 Romy.

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


More information about the fdo-trac mailing list