Page 1 of 1

Invalid length for DATE or NUMBER bind variable (ORACLE)

Posted: Mon 08 Mar 2021 16:29
by tcxbalage
We ran into another issue with the recent version (8.4.1):
"ORA-01483: invalid length for DATE or NUMBER bind variable"
There is no no explicit PREPARE call in our codes, until the recent version it was working fine.

You can reproduce the problem using the following code:

Code: Select all

procedure TfrmMain.Button2Click(Sender: TObject);
begin
// SQL > select * from user_tables where table_name = :p_string and last_analyzed = :p_date
  conMain.Connect;

  // if I add the following code it is working fine:
  //   UniQuery1.Prepare;

  UniQuery1.Params[0].Value := '181000020000000129610030';
  UniQuery1.Params[1].Value := Date;

  UniQuery1.Open;
end;


Re: Invalid length for DATE or NUMBER bind variable (ORACLE)

Posted: Wed 10 Mar 2021 17:56
by tcxbalage
Can I get some feedback, please?

Re: Invalid length for DATE or NUMBER bind variable (ORACLE)

Posted: Thu 11 Mar 2021 15:14
by MaximG
We could not reproduce the error according to your description. To further investigate the issue, compose and send us a small sample, execution of which causes the issue. You can do it via the e-support form https://www.devart.com/company/contactform.html
What Oracle version are you using ?

Re: Invalid length for DATE or NUMBER bind variable (ORACLE)

Posted: Fri 16 Apr 2021 08:03
by tcxbalage
The mentioned problem has been fixed in 8.4.3, no error received, thanks for the help.