UniLoader with firebird numeric(14,2)
Posted: Tue 07 May 2013 01:02
Many of our Firebird fields are numeric(14,2).
While the UniLoader works well with all other fields (string, date, int, etc)
trying to insert records containing these wider numerics gives me the error:
CANNOT CONVERT TYPE.
Simple example:
// connected to a firebird DB
// ID is integer
// com_set_amount is numeric(14,2) [yielding ftfmtBcd as tfield datatype]
// structure of cd_med is identical to cd_dental
mUniloader.TableName:='cd_dental';
q.sql.Add('select id, com_set_amount from cd_med');
q.open;
mUniloader.createcolumns;
mUniloader.loadfromdataset(q);
I have tried all kinds of things but the error is consistent:
"Cannot Convert Type"
If the numeric field is removed from the select everything is fine.
Thanks for the help and great forum,
tony M
While the UniLoader works well with all other fields (string, date, int, etc)
trying to insert records containing these wider numerics gives me the error:
CANNOT CONVERT TYPE.
Simple example:
// connected to a firebird DB
// ID is integer
// com_set_amount is numeric(14,2) [yielding ftfmtBcd as tfield datatype]
// structure of cd_med is identical to cd_dental
mUniloader.TableName:='cd_dental';
q.sql.Add('select id, com_set_amount from cd_med');
q.open;
mUniloader.createcolumns;
mUniloader.loadfromdataset(q);
I have tried all kinds of things but the error is consistent:
"Cannot Convert Type"
If the numeric field is removed from the select everything is fine.
Thanks for the help and great forum,
tony M