SQLite - '' is not a valid floating point value
Posted: Wed 17 Mar 2010 10:41
When using the following on SQLite I get the errormessage '' is not a valid floating point value
When running MS Access, MySQL or MS SQL the error isn't there.
What can I do to have this go away?
fldSum is defined as a Float in the SQLite db
curBought := QueryMain.FieldByName('fldbuyer_sum').AsCurrency;
intBuyer := QueryMain.FieldByName('fldbuyer_id').AsInteger;
QueryInput.SQL.Clear;
QueryInput.SQL.Add('SELECT Sum(fldamount) AS fldsum FROM ' + conTable_Payments_Buyer);
QueryInput.SQL.Add(' WHERE fldbuyer_id = :fldbuyer_id');
QueryInput.SQL.Add(' AND fldauction_guid = :fldauction_guid');
QueryInput.ParamByName('fldauction_guid').Value := Settings.Auction_GUID;
QueryInput.ParamByName('fldbuyer_id').Value := intBuyer;
17-03-2010 11:35:36 # '' is not a valid floating point value
When running MS Access, MySQL or MS SQL the error isn't there.
What can I do to have this go away?
fldSum is defined as a Float in the SQLite db
curBought := QueryMain.FieldByName('fldbuyer_sum').AsCurrency;
intBuyer := QueryMain.FieldByName('fldbuyer_id').AsInteger;
QueryInput.SQL.Clear;
QueryInput.SQL.Add('SELECT Sum(fldamount) AS fldsum FROM ' + conTable_Payments_Buyer);
QueryInput.SQL.Add(' WHERE fldbuyer_id = :fldbuyer_id');
QueryInput.SQL.Add(' AND fldauction_guid = :fldauction_guid');
QueryInput.ParamByName('fldauction_guid').Value := Settings.Auction_GUID;
QueryInput.ParamByName('fldbuyer_id').Value := intBuyer;
17-03-2010 11:35:36 # '' is not a valid floating point value