[fdo-commits] r689 - branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common

svn_fdo at osgeo.org svn_fdo at osgeo.org
Thu Jan 25 21:56:15 EST 2007


Author: brentrobinson
Date: 2007-01-25 21:56:14 -0500 (Thu, 25 Jan 2007)
New Revision: 689

Modified:
   branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common/FdoConstraintsTest.cpp
   branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common/FdoConstraintsTest.h
Log:
Activated more constrained value update tests for RDBMS providers.

Modified: branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common/FdoConstraintsTest.cpp
===================================================================
--- branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common/FdoConstraintsTest.cpp	2007-01-26 02:51:58 UTC (rev 688)
+++ branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common/FdoConstraintsTest.cpp	2007-01-26 02:56:14 UTC (rev 689)
@@ -121,8 +121,12 @@
     return true;
 }
 
-FdoBoolean FdoConstraintsTest::CanHandleExactFloatValue()
+FdoDouble FdoConstraintsTest::GetDoubleRounding( FdoDataType dataType )
 {
-    return false;
+    if ( dataType == FdoDataType_Decimal ) 
+        return (FdoDouble) 0.05;
+    else
+        return (FdoDouble) 0.000000000001;
 }
 
+

Modified: branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common/FdoConstraintsTest.h
===================================================================
--- branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common/FdoConstraintsTest.h	2007-01-26 02:51:58 UTC (rev 688)
+++ branches/3.2.x/Providers/GenericRdbms/Src/UnitTest/Common/FdoConstraintsTest.h	2007-01-26 02:56:14 UTC (rev 689)
@@ -43,7 +43,7 @@
 protected:
     virtual FdoIConnection* CreateConnection( FdoBoolean recreateDb = false );
     virtual FdoBoolean CanRestrictCheckConstraint();
-    virtual FdoBoolean CanHandleExactFloatValue();
+    virtual FdoDouble GetDoubleRounding( FdoDataType dataType );
     virtual void  set_provider() {};
 
 };



More information about the fdo-commits mailing list