[fdo-trac] #464: SQLServerSpatialProvider thows an exception when GetPropertyCount is called from an aggregate reader

FDO trac_fdo at osgeo.org
Fri Feb 20 15:02:15 EST 2009


#464: SQLServerSpatialProvider thows an exception when GetPropertyCount is called
from an aggregate reader
---------------------------------+------------------------------------------
   Reporter:  romicadascalescu   |       Owner:  danstoica
       Type:  defect             |      Status:  new      
   Priority:  major              |   Milestone:           
  Component:  SQLServer Spatial  |     Version:  3.4.0    
   Severity:  3                  |    Keywords:           
External_id:                     |  
---------------------------------+------------------------------------------
 SQLServerSpatialProvider thows an exception when GetPropertyCount is
 called from an aggregate reader.

 The issue is in following files:
 \\Providers\GenericRdbms\Src\SQLServerSpatial\Fdo\FdoRdbmsSqlServerOptimizedAggregateReader.h
 \\Providers\GenericRdbms\Src\Fdo\FeatureCommands\FdoRdbmsFeatureReader.h

 FdoRdbmsSqlServerOptimizedAggregateReader has following methods declared
 virtual
 public:
  virtual FdoInt32  GetPropertyCount();
  virtual FdoString*  GetPropertyName(FdoInt32 index);
  virtual FdoDataType  GetDataType(FdoString* idName);
  virtual FdoPropertyType GetPropertyType(FdoString* idName);
 FdoRdbmsFeatureReader has following methods declared non-virtual
 private:
     FdoInt32 GetPropertyCount();
     // This is an internal method to support the DataReader
     FdoString* GetPropertyName(FdoInt32 index);
     // This is an internal method to support the DataReader
     FdoDataType GetDataType(FdoString* propertyName);
     // This is an internal method to support the DataReader
     FdoPropertyType GetPropertyType(FdoString* propertyName);

 Since FdoRdbmsSqlServerOptimizedAggregateReader is derivate from
 FdoRdbmsFeatureReader when we call a from a
 FdoRdbmsSqlServerOptimizedAggregateReader object one of those methods, we
 will calle methods from FdoRdbmsFeatureReader because methods are not
 virtual

-- 
Ticket URL: <http://trac.osgeo.org/fdo/ticket/464>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list