[fdo-commits] r695 -
trunk/Providers/GenericRdbms/Src/UnitTest/Common
svn_fdo at osgeo.org
svn_fdo at osgeo.org
Fri Jan 26 17:29:38 EST 2007
Author: brentrobinson
Date: 2007-01-26 17:29:38 -0500 (Fri, 26 Jan 2007)
New Revision: 695
Modified:
trunk/Providers/GenericRdbms/Src/UnitTest/Common/FdoConstraintsTest.cpp
trunk/Providers/GenericRdbms/Src/UnitTest/Common/FdoConstraintsTest.h
Log:
Merged change 689 from 3.2.x branch
Modified: trunk/Providers/GenericRdbms/Src/UnitTest/Common/FdoConstraintsTest.cpp
===================================================================
--- trunk/Providers/GenericRdbms/Src/UnitTest/Common/FdoConstraintsTest.cpp 2007-01-26 22:26:54 UTC (rev 694)
+++ trunk/Providers/GenericRdbms/Src/UnitTest/Common/FdoConstraintsTest.cpp 2007-01-26 22:29:38 UTC (rev 695)
@@ -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: trunk/Providers/GenericRdbms/Src/UnitTest/Common/FdoConstraintsTest.h
===================================================================
--- trunk/Providers/GenericRdbms/Src/UnitTest/Common/FdoConstraintsTest.h 2007-01-26 22:26:54 UTC (rev 694)
+++ trunk/Providers/GenericRdbms/Src/UnitTest/Common/FdoConstraintsTest.h 2007-01-26 22:29:38 UTC (rev 695)
@@ -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