Page 1 of 1

Persistent field - TIntegerField vs TFloatField from BDE to ODAC

Posted: Tue 12 Dec 2006 20:58
by FredLemay
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,

Posted: Wed 13 Dec 2006 13:54
by Challenger
For this purpose you can use two typed constants, IntegerPrecison and FloatPrecision, that are declared in module OraClasses.pas.

Posted: Wed 13 Dec 2006 14:20
by FredLemay
Tank you so much, that's exactly what I'm looking for.