Persistent field - TIntegerField vs TFloatField from BDE to ODAC

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
FredLemay
Posts: 8
Joined: Tue 12 Dec 2006 20:28

Persistent field - TIntegerField vs TFloatField from BDE to ODAC

Post by FredLemay » Tue 12 Dec 2006 20:58

Our Oracle 8i database contains number(10) field that are consider in BDE like TIntegerField (BDE property "EnableInteger" is true). This kind of field generates persistents TIntegerField in ClientDataSet. We want to change BDE Queries to Odac queries, but Odac generates TFloatField for number(10). Is there any way to set something like "IntegerPrecision" on TOraSession ? I just need to tell ODAC that number lower than 10 is TIntegerField not TFloatField.

Tanks,

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Wed 13 Dec 2006 13:54

For this purpose you can use two typed constants, IntegerPrecison and FloatPrecision, that are declared in module OraClasses.pas.

FredLemay
Posts: 8
Joined: Tue 12 Dec 2006 20:28

Post by FredLemay » Wed 13 Dec 2006 14:20

Tank you so much, that's exactly what I'm looking for.

Post Reply