Page 1 of 1

EDataMappingError Value is out of range: 0

Posted: Fri 15 Apr 2016 08:42
by Ludek
Hi,
what does such exception mean?

It references a very normal TFloatField, without any constraints...

callstack:

Code: Select all

(0000FE1D){} [05330E1D] System.@RaiseExcept
(002EE6C6){} [0663F6C6] CRAccess.TCRRecordSet.PutFieldData
(000D9714){} [0642A714] MemData.TData.PutField
(00250ED0){} [065A1ED0] MemDS.TMemDataSet.SetFieldData
(0037E0BC){} [066CF0BC] OLEDBAccess.TOLEDBRecordSet.CheckBCDOverflow
(00250C59){} [065A1C59] MemDS.TMemDataSet.SetFieldData
(0042493F){} [0574593F] Data.DB.TDataSet.SetFieldData
(00250747){} [065A1747] MemDS.TMemDataSet.GetFieldData
(00250CDA){} [065A1CDA] MemDS.TMemDataSet.SetFieldData
(004137F3){} [057347F3] Data.DB.TField.SetData
(00416C31){} [05737C31] Data.DB.TFloatField.SetAsFloat

Re: EDataMappingError Value is out of range: 0

Posted: Fri 15 Apr 2016 09:02
by Ludek
btw. i'm using such data type mapping setting

DataTypeMap.AddDBTypeRule(msReal, ftFloat);

and the field is a real field (defined in query like "(cast 0 as float(15))" )

Re: EDataMappingError Value is out of range: 0

Posted: Mon 18 Apr 2016 12:10
by AlexP
Hello,

We can't reproduce the issue. The "select cast(0 as float(15)) as test" command is executed with no errors on the latest SDAC version 7.2.10. Please specify the SDAC version and the version of IDE and SQL Server.