[fdo-commits] r219 - branches/3.2.x/Providers/SDF/Src/UnitTest
svn_fdo at osgeo.org
svn_fdo at osgeo.org
Fri Feb 23 11:42:33 EST 2007
Author: pierredalcourt
Date: 2007-02-23 11:42:33 -0500 (Fri, 23 Feb 2007)
New Revision: 219
Modified:
branches/3.2.x/Providers/SDF/Src/UnitTest/SelectTest.cpp
Log:
TRAC Ticket #17 "SHP/SDF: fix various Select/SelectAggregates defects"
Modified: branches/3.2.x/Providers/SDF/Src/UnitTest/SelectTest.cpp
===================================================================
--- branches/3.2.x/Providers/SDF/Src/UnitTest/SelectTest.cpp 2007-02-22 20:55:20 UTC (rev 218)
+++ branches/3.2.x/Providers/SDF/Src/UnitTest/SelectTest.cpp 2007-02-23 16:42:33 UTC (rev 219)
@@ -352,11 +352,15 @@
FdoPtr <FdoIdentifierCollection> ids = select->GetPropertyNames ();
FdoPtr <FdoIdentifier> id = FdoComputedIdentifier::Create(L"AVG_ID", FdoPtr<FdoExpression>(FdoExpression::Parse(L"Avg(Prop1)")));
ids->Add(id);
- FdoPtr<FdoIFeatureReader> reader = select->Execute ();
- while (reader->ReadNext ())
+ try
{
- double avg_computed_id = reader->GetDouble (L"AVG_ID");
+ FdoPtr<FdoIFeatureReader> reader = select->Execute ();
+ CPPUNIT_FAIL("Expected an exception due to using aggregate functions in select command, but didn't get one");
}
+ catch(FdoException *e)
+ {
+ e->Release();
+ }
}
catch (FdoException* e)
{
More information about the fdo-commits
mailing list