How i do aways make a Oracle NUMBER(9) Datatype to Integer?
Posted: Wed 15 Jun 2011 13:49
Hi guys,
I have a virtual field that cames from my SQL and when i create a persistent field in Delphi, it maps to a FloatField. Ok. When a create persistent field that original field in Oracle is datatype NUMBER(9), the Delphi maps it with a IntegerField. I need to do something like this:
When i do it, i have a error message: Type mismatch for field "myfield": expecting: BCD' actual: FMTBcdField, Because the Oracle sends to Delphi that field is a Float Datatype.
So, i want make every Oracle datatype NUMBER(9) make on Delphi FloatNumber.
I already try to do all Oracle datatype NUMBER(9) make on FloatField in Delphi:
Somebody have any idea how make it?
Thanks for All!
I have a virtual field that cames from my SQL and when i create a persistent field in Delphi, it maps to a FloatField. Ok. When a create persistent field that original field in Oracle is datatype NUMBER(9), the Delphi maps it with a IntegerField. I need to do something like this:
Code: Select all
select 0 as myfieldINT from mytableA
union
select field as myfieldINT from mytableB
So, i want make every Oracle datatype NUMBER(9) make on Delphi FloatNumber.
I already try to do all Oracle datatype NUMBER(9) make on FloatField in Delphi:
- Turn off EnabledBCD Params
Set FloatPrecision=9 Params
Somebody have any idea how make it?
Thanks for All!