Page 1 of 1

Unknown data type of parameter MyInt64

Posted: Thu 16 Sep 2021 19:09
by FredS
How come I am getting 'Unknown data type' even though help says this:
Use Value in generic code that manipulates the values of parameters without the need to know the field type the parameter represent.
I could add its a BigInt but it never gets past Param parsing..


---------------------------
Project Project4.exe raised exception class Exception with message 'Unknown data type of parameter MyInt64'.
---------------------------

Code: Select all

procedure TForm2.FormCreate(Sender: TObject);
var LMyInt64: UInt64;
begin
  Con.SQL.SQL.Text := 'INSERT INTO MyTable (MyID, MyLevel, MyParent, MyName, MyInt64)' +
                      ' VALUES (:MyID, :MyLevel, :MyParent, :MyName, :MyInt64)';
  Con.SQL.Params[0].Value := 1;
  Con.SQL.Params[1].Value := 0;
  Con.SQL.Params[2].Value := 0;
  Con.SQL.Params[3].Value := '\';
  Con.SQL.Params[4].Value := LMyInt64;
  Con.SQL.Execute;
end;

Re: Unknown data type of parameter MyInt64

Posted: Fri 17 Sep 2021 14:36
by ViktorV
Hi Fred,

Thanks for your reply.

Thank you for the information. At the moment our team is investigating it however I want to assure you that as soon as we have any results, we will immediately let you know.
Feel free to reply to this email if you have any additional questions or need any kind of additional instructions.

Best regards,
Viktor

Re: Unknown data type of parameter MyInt64

Posted: Fri 19 Nov 2021 10:16
by ViktorV
Dear Fred!

Kindly be informed that we have fixed the bug you mentioned and its fix will be included in the next build of UniDAC.