Cannot set the parameter value AsCurrency
Posted: Fri 16 Jan 2009 13:04
Hi All, Hi Team!
I can't set the field value by using AsCurrency.
The field type is decimal(15,4).
var cc : currency;
begin
...
...ParamByName('my_field').AsCurrency := cc;
'invalid internal field type $C (12)' error
but .AsFloat all right!
IMHO need add case for 12 in function ConvertInternalTypeMySQLFormat(const InternalType: word): TMySqlFieldType in MySqlApiUni unit;
etc...
Thanks
I can't set the field value by using AsCurrency.
The field type is decimal(15,4).
var cc : currency;
begin
...
...ParamByName('my_field').AsCurrency := cc;
'invalid internal field type $C (12)' error
but .AsFloat all right!
IMHO need add case for 12 in function ConvertInternalTypeMySQLFormat(const InternalType: word): TMySqlFieldType in MySqlApiUni unit;
etc...
Thanks