Page 1 of 1

BCD Fields

Posted: Thu 18 Nov 2010 11:00
by zzircon
Hi, I´m using IBDAC 3.10.0.8. and FireBird.

I have a DB with decimal(15,2) Fields and decimal(15,12) for Currency support, after migrate to IBDAC this fields has turned from TFMTBCDField to TFloatFields (that´s a problem)

Why? How can I fix it? I have EnableBCD and EnableFMTBCD to True.

thx.

... further testing

Posted: Fri 19 Nov 2010 10:32
by zzircon
It seems EnableFMTBCD does not work.
When I try with decimal (9,2) everything it´s OK (enableBDC=TRUE), a TBCDField is mapped, but with decimal (10,2) (enbaleFMTBCD=TRUE) a TFloatField is created instead of TFMTBCDField.

I´m working with Delphi7. TTable component works fine, only TIBCTable fails.

Posted: Fri 19 Nov 2010 11:00
by AndreyZ
Hello,

Please specify your Firebird database dialect.

Closed

Posted: Fri 19 Nov 2010 11:26
by zzircon
Great !!!

My Dialect was 1.
With Dialect 3 everything works fine. Now my fields are mapped to BCD and FMTBCD as is expected to.

Posted: Fri 19 Nov 2010 12:07
by AndreyZ
It is good to see that this problem was solved. If any other questions come up, please contact us.