Number as integer and not as float

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
amoroder
Posts: 30
Joined: Sun 12 Sep 2010 11:33

Number as integer and not as float

Post by amoroder » Thu 20 Feb 2014 09:16

Hello,

I have a table with the ID field defined as NUMBER
that contains only integers ( not floating point values).
How can I tell ODAC not to convert this numbers to float ?

Thanks
Andreas

mikeho
Posts: 41
Joined: Thu 11 Nov 2004 21:23
Location: Middle Tennessee USA

Re: Number as integer and not as float

Post by mikeho » Thu 20 Feb 2014 16:37

Try setting EnableIntegers to True under the TOraSession Options.
Last edited by mikeho on Tue 25 Feb 2014 18:09, edited 1 time in total.

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

Re: Number as integer and not as float

Post by AlexP » Fri 21 Feb 2014 11:52

hello,

To implement such behavior, you should set the EnableIntegers property to True or use DataTypeMapping

Post Reply