[mapguide-trac] #1162: MgGwsFeatureReader does not work with
left-out joins
MapGuide Open Source
trac_mapguide at osgeo.org
Fri Nov 27 02:48:04 EST 2009
#1162: MgGwsFeatureReader does not work with left-out joins
-----------------------+----------------------------------------------------
Reporter: Aleck | Owner: Aleck
Type: defect | Status: new
Priority: low | Milestone:
Component: General | Version: 2.0.2
Severity: trivial | Keywords:
External_id: |
-----------------------+----------------------------------------------------
When GWS query engine is involved in querying features, an
MgServerGwsFeatureReader will be created for reading features.
In MgServerGwsFeatureReader::ReadNext() method, it'll get a right-side
feature
iterator for a left side feature using the following code:
retVal = secondaryIter->ReadNext();
If (retval)
{
// return the right-side feature
...
}
else
{
m_bAdvancePrimaryIterator = true;
}
Therefore, if there is no corresponding right-side feature, it'll skip the
left
side feature, which is wrong for left outer joins.
The solution is to check if it is a left outer join. If so, the left-side
feature still need to be returned with the right side feature property
value set
to NULL
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1162>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list