good day,
Using:
Delphi 7
MySQL 4.1.11
The BCD (decimal(m,d) ) column size is m+2 bytes (from MySQL Reference Manual) but when Delphi fetch the column, he sees 8 bytes at first, fill them and then, raise an overflow error...
Is your driver giving wrong size informations to Delphi ?
thanks
BCD of 8 bytes
from history.html:
version 2.50.4 29-Mar-05
I use decimal(19,4) -> the size of the record is 21 bytes, like a string
Delphi get it as a TFMTBCDField with precision=21 and size=4 and wants to store it in 8 bytes, like a number
the application works correctly when the database is empty
I don't know about the conversion between them but the values that we save are correctly interpreted, it would be strange that it doesn't work the other way so what could it be ?
version 2.50.4 29-Mar-05
I use decimal(19,4) -> the size of the record is 21 bytes, like a string
Delphi get it as a TFMTBCDField with precision=21 and size=4 and wants to store it in 8 bytes, like a number
the application works correctly when the database is empty
I don't know about the conversion between them but the values that we save are correctly interpreted, it would be strange that it doesn't work the other way so what could it be ?