[mapguide-users] King.Oracle return allways all columns
Haris Kurtagic
haris at sl-king.com
Thu Feb 15 06:51:15 EST 2007
Hi Bruno,
That is correct King.oracle Provider is executing select for all columns
in FDO class definition, regardless if you set property collection for
select command.
I suppose I could change this.
I wouldn't like to add a lot of overhead in checking if filter
conditions matches property collection, order etc..
So for example when setting property collection and order properties,
the provider will return with error if some property is in order not in
select collection.
Haris
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Bruno Scott
Sent: 6. februar 2007 11:47
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] King.Oracle return allways all columns
I'm trying to select a single column using the King.Oracle FDO provider
But it allways return all columns
This is a sample code of what i'm trying to do
FdoPtr<FdoISelect> sampleSelect;
FdoPtr<FdoIFeatureReader> sampleFeatureReader;
FdoPtr<FdoIdentifier> queryPropertyName;
sampleSelect = (FdoISelect
*)m_connection->CreateCommand(FdoCommandType_Select);
sampleSelect->SetFeatureClassName("MyFeatureClassName");
FdoPtr<FdoIdentifierCollection> propertyCollection =
sampleSelect->GetPropertyNames();
queryPropertyName = FdoIdentifier::Create("MyColumnName");
propertyCollection->Add(queryPropertyName);
sampleFeatureReader = sampleSelect->Execute();
When i drill down the featureReader it return all columns with all
values...
This same code works fine with other provider like the SDF..
Bruno Scott
--
View this message in context:
http://www.nabble.com/King.Oracle-return-allways-all-columns-tf3179966s1
6610.html#a8823971
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
More information about the mapguide-users
mailing list