Firebird/SQLite - TFloatField/TSingleField
Posted: 12.12.2015, 12:48
Hi All,
I experienced a difference in behavior with ZeosLib 7.2.0 Beta.
1. Using Firebird
With a Firebird 2.5.2 simple database, the FLOAT fields are interpreted (I think), by ZeosLib, differently in C++Builder (RAD) 2009 and C++Builder XE2. I tested in a Windows 7 64 bits OS. In C++Builder RAD 2009, the FLOAT is interpreted as TFloatField. On the other hand, in XE2 the same field was interpreted as TSingleField.
2. Using SQLite
With a SQLite 3.8.11 equivalent database, the REAL fields are interpreted as TFloatField both in RAD 2009 and XE2.
I also noticed that TSingleFields are present in XE2 but not in RAD 2009.
I'm trying to implement a Multi-DBMS TDataModule and this subject is kind of a problem, as I have TField descendants in design time.
Is there a way to overcome this TFloatField/TSingleField mapping difference in C++Builder XE2?
Thank you in advance.
Best,
Marcelo.
[Synopses]
Windows 7 64 bits
ZeosLib 7.2.0 Beta
Firebird 2.5.2 and SQLite 3.8.11
C++Builder RAD 2009 and XE2 Professional.
I experienced a difference in behavior with ZeosLib 7.2.0 Beta.
1. Using Firebird
With a Firebird 2.5.2 simple database, the FLOAT fields are interpreted (I think), by ZeosLib, differently in C++Builder (RAD) 2009 and C++Builder XE2. I tested in a Windows 7 64 bits OS. In C++Builder RAD 2009, the FLOAT is interpreted as TFloatField. On the other hand, in XE2 the same field was interpreted as TSingleField.
2. Using SQLite
With a SQLite 3.8.11 equivalent database, the REAL fields are interpreted as TFloatField both in RAD 2009 and XE2.
I also noticed that TSingleFields are present in XE2 but not in RAD 2009.
I'm trying to implement a Multi-DBMS TDataModule and this subject is kind of a problem, as I have TField descendants in design time.
Is there a way to overcome this TFloatField/TSingleField mapping difference in C++Builder XE2?
Thank you in advance.
Best,
Marcelo.
[Synopses]
Windows 7 64 bits
ZeosLib 7.2.0 Beta
Firebird 2.5.2 and SQLite 3.8.11
C++Builder RAD 2009 and XE2 Professional.