Opened 13 years ago
Closed 13 years ago
#1782 closed defect (fixed)
Customized function such as "EXTENT" can't be run on SQL Server Spatial
Reported by: | sparkliu | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | Feature Service | Version: | |
Severity: | trivial | Keywords: | |
Cc: | External ID: |
Description
When coming to customized function such as "EXTENT", MapGuide server will try to calculate by itself instead of using FDO provider. So it will request the actual property instead of the expression into FDO. When getting properties from reader, it first check if the return column number is only 1, and use the first column as return column.
However, there is no guarantee in FDO interface that the return reader only contains the requesting column. For example, SQL Server spatial adds PK column as well, and many code may have been written depending on that.
So to make the code robust, if there are more than one columns returned, we should parse the expression when we gets the reader and only use the column we need.
Attachments (1)
Change History (2)
by , 13 years ago
Attachment: | 1782 patch.patch added |
---|
comment:1 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fix of this defect