Help of TOraDataSet.CreateProcCall() and TOraSQL.CreateProcCall() are incorrect ?

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
herbert
Posts: 17
Joined: Sun 08 Oct 2006 19:36
Location: Taipei,Taiwan

Help of TOraDataSet.CreateProcCall() and TOraSQL.CreateProcCall() are incorrect ?

Post by herbert » Mon 18 Dec 2006 08:42

In ODAC V 5.80.038, help of TOraDataSet.CreateProcCall(Name) and TOraSQL.CreateProcCall(Name) are incorrect,
parameters should be CreateProcCall(Name,int), but I do not know what is the value of int.
Do I need not execute CreateProcCall() before assign TOraParams ?

Best regards,
Herbert Chang.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 18 Dec 2006 09:49

The second parameter of the TOraDataSet.CreateProcCall method is a number of overload in case several overloaded stored procedures with the same name exist. This parameter has default value. So if a stored procedure that you need to execute has no overloads, than you can call the CreateProcCall method with the Name parameter only.

herbert
Posts: 17
Joined: Sun 08 Oct 2006 19:36
Location: Taipei,Taiwan

What value is the default ?

Post by herbert » Mon 18 Dec 2006 16:40

If I call with Name only, compile Error occurs.
Does the default value is zero or one ?

herbert
Posts: 17
Joined: Sun 08 Oct 2006 19:36
Location: Taipei,Taiwan

Overload No

Post by herbert » Tue 19 Dec 2006 00:55

Sorry, I found overload no in TOraSession.ExecProc(), It is start from 1.
But, if CreateProcCall(Name) parameters ommit overload no,
compiler occurs Error "E2193 Too fee parameters".

Best regards,
Herbert Chang

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 19 Dec 2006 10:40

Defaul value for the Overload parameter is available in Delphi only. In C++ Builder a value for this parameter must be specified.

Post Reply