Error ParseSQL for create params

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

Error ParseSQL for create params

Post by sinys » Mon 04 Jun 2012 19:58

Delphi XE2, ODAC 8.1.6

For code in memo1

Code: Select all

begin
  -- Call the function
  :result := user1.package1.my_function1234(p_id_test => :p_id_test,
                                            p_sex => :p_sex,
                                            p_age => :p_age);
end;
I use this code:

Code: Select all

  OraSQL1.SQL.Text := Memo1.Text;
  OraSQL1.Params.ParseSQL(OraSQL1.SQL.Text, True);
and I see param with name "=" in params collection, it's no good, I think that this situation should be handled specially, and this param should not be.

If I set memo1 code in design time in OraSQL1 "SQL" page and go to "Parameters" page I'm not see param "=".

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

Re: Error ParseSQL for create params

Post by AlexP » Tue 05 Jun 2012 10:02

hello,

The ParseSQL method is implemented in the standard Delphi DB.pas unit, and the problem when defining ":=" symbols as parameters is due to this method implementation. If you don't call this method, parameters will be defined correctly by us. You can contact RadStudio developers to have this bug fixed.

sinys
Posts: 186
Joined: Tue 21 Feb 2012 03:44

Re: Error ParseSQL for create params

Post by sinys » Tue 05 Jun 2012 12:00

ok. Thank you.

Post Reply