defualt LargeIntPrecision is 0 or 18?

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
easyblue
Posts: 64
Joined: Wed 02 Feb 2005 13:02
Location: Shanghai

defualt LargeIntPrecision is 0 or 18?

Post by easyblue » Mon 09 Aug 2010 04:58

When I check the source code of Oraclass.pas (v6.90.0.59),
var
SmallintPrecision: integer = 0;
IntegerPrecision: integer = 9;
LargeIntPrecision: integer = 0; // default of LargeIntPrecision is 0 not 18?
FloatPrecision: integer = 15;
BCDPrecision: string = '14,4';
Is it an typo error? According to document, the default of LargeIntPrecision should be 18?

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Mon 09 Aug 2010 13:36

Hello

If the LargeIntPrecision global variable is 0, then ODAC uses its own default value for LargeIntPrecision (=18). If the LargeIntPrecision global variable is changed to any value different from 0, then ODAC will use this value.

Post Reply