[fdo-commits] r801 - branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Filter

svn_fdo at osgeo.org svn_fdo at osgeo.org
Thu Mar 22 15:13:11 EDT 2007


Author: romicadascalescu
Date: 2007-03-22 15:13:10 -0400 (Thu, 22 Mar 2007)
New Revision: 801

Modified:
   branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Filter/FdoRdbmsFilterProcessor.cpp
Log:
Track #49: Fixed Calling FdoExpression::Parse with a wrong expression cause a crash

Modified: branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Filter/FdoRdbmsFilterProcessor.cpp
===================================================================
--- branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Filter/FdoRdbmsFilterProcessor.cpp	2007-03-20 22:04:05 UTC (rev 800)
+++ branches/3.2.x/Providers/GenericRdbms/Src/Fdo/Filter/FdoRdbmsFilterProcessor.cpp	2007-03-22 19:13:10 UTC (rev 801)
@@ -1309,8 +1309,10 @@
 
         for (int i=0; i<identColArray[j]->GetCount(); i++)
         {
-            FdoPtr<FdoIdentifier> property = identColArray[j]->GetItem(i);
-            PrependProperty( property, true );
+            FdoPtr<FdoExpression> pExpr = identColArray[j]->GetItem(i);
+            if (dynamic_cast<FdoIdentifier*>(pExpr.p) == NULL )
+                throw FdoFilterException::Create(NlsMsgGet(FDORDBMS_30, "Unknown expression"));
+            PrependProperty( (FdoIdentifier*)pExpr.p, true );
         }
     }
 



More information about the fdo-commits mailing list