I have a MySQL database imported from a creaky old MSAccess db. It has several columns that store monetary amounts, and the import set them all to decimal(19,4). I'm looking at some of these columns in Lazarus with TDBGrid -> TDataSource -> TSQLQuery -> TMySQL56Connection. In the TFieldDefs of the TSQLQuery for these fields the DataType is set (automatically) to ftFMTBcd, with Precision -1 and size 4.
I would like to have the data displayed with two decimal places, instead of, as at present, 35.00 showing as 35, 35.70 showing as 35.7, and 35.72 showing, as desired, as 35.72. Anything I put in the DisplayFormat field of the Columns in the TDBGrid (eg 0.00, '0.00', "0.00", #,##0.00 etc) causes a crash.
What am I doing wrong?