EnableFMTBCD & EnableNumbers options

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
dados
Posts: 82
Joined: Thu 18 Aug 2005 14:06

EnableFMTBCD & EnableNumbers options

Post by dados » Wed 20 Jan 2016 17:10

Hi,

What is the difference between using EnableFMTBCD and EnableNumbers options in TOraSession?

I have a table with a number column that no precision or scaling defined and it contains a number that is upto 21 in length.

If both options are false I get something like 1.4324254897E3 but if either one is true the number is displayed correctly.
If both options are set to true the default is that I get TFMTBCDField
The help/doc file is not quite up-to-date: https://www.devart.com/odac/docs/?devar ... ptions.htm
as there is no mention of BCD fields or BCD options.

So witch one should I use for large oracle numbers TFMTBCDField or TOraNumberField ?
And what is the difference between those two?
And does it affect speed when using those enable[datatypes] options in TOraSession?

-Arni

dados
Posts: 82
Joined: Thu 18 Aug 2005 14:06

Re: EnableFMTBCD & EnableNumbers options

Post by dados » Wed 27 Jan 2016 09:01

Anyone ?

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: EnableFMTBCD & EnableNumbers options

Post by MaximG » Wed 27 Jan 2016 10:49

On EnableNumbers=True the dataset fields with Precision > 15 will be mapped as TOraNumberField.

On EnableBCD=True the dataset fields with Precision > 9 And Scale <5 will be mapped as TBCDField.

On EnableFMTCD=True the dataset fields with Precision > 15 will be mapped as TFMTBCDField.

dados
Posts: 82
Joined: Thu 18 Aug 2005 14:06

Re: EnableFMTBCD & EnableNumbers options

Post by dados » Wed 27 Jan 2016 12:15

Thanks

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: EnableFMTBCD & EnableNumbers options

Post by MaximG » Thu 28 Jan 2016 09:48

Feel free to contact us if you have any further questions

Post Reply