EDataMappingError Value is out of range: 0

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Ludek
Posts: 296
Joined: Thu 12 Oct 2006 09:34

EDataMappingError Value is out of range: 0

Post by Ludek » Fri 15 Apr 2016 08:42

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

Ludek
Posts: 296
Joined: Thu 12 Oct 2006 09:34

Re: EDataMappingError Value is out of range: 0

Post by Ludek » Fri 15 Apr 2016 09:02

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))" )

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: EDataMappingError Value is out of range: 0

Post by AlexP » Mon 18 Apr 2016 12:10

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.

Post Reply