Opened 15 years ago
Closed 15 years ago
#464 closed defect (fixed)
SQLServerSpatialProvider throws an exception when GetPropertyCount is called from an aggregate reader
Reported by: | romicadascalescu | Owned by: | danstoica |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | SQLServer Spatial | Version: | 3.4.0 |
Severity: | 3 | Keywords: | |
Cc: | External ID: |
Description
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
Change History (2)
comment:1 by , 15 years ago
Summary: | SQLServerSpatialProvider thows an exception when GetPropertyCount is called from an aggregate reader → SQLServerSpatialProvider throws an exception when GetPropertyCount is called from an aggregate reader |
---|
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |