set wrong parameter datatype

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sinys
Posts: 186
Joined: Tue 21 Feb 2012 03:44

set wrong parameter datatype

Post by sinys » Tue 23 Apr 2013 20:16

When I can set wrong parameter datatype like this:

Code: Select all

  OraSQL1.SQL.Text := 'begin' + #13#10 +
'   open :curs for' + #13#10 +
'     select * from scott.emp;' + #13#10 +
'end;';

  OraSQL1.ParamByName('curs').ParamType := ptInputOutput;
  OraSQL1.ParamByName('curs').DataType := ftString;
  OraSQL1.ParamByName('curs').Size := 4000;
  OraSQL1.Execute;
sometimes the application hangs on Execute command instead generate an error.
Do you have any ideas why it possible?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: set wrong parameter datatype

Post by AlexP » Wed 24 Apr 2013 12:27

Hello,

We couldn't reproduce the problem. When executing such a block, the correct Oracle PLS-00456 error occurs. Please specify your exact versions of Oracle client and server, IDE, and ODAC

Post Reply