From ODAC to UniDAC (2)

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ahijazi
Posts: 47
Joined: Mon 01 Oct 2007 11:13

From ODAC to UniDAC (2)

Post by ahijazi » Wed 28 May 2014 16:28

Dear Devart;

The following code is executed in ODAC, but when using UniDAC it did not, it seems that UniDAC did not understand result parameter as a default ????, how can using the same code with UniDAC

Code: Select all

  vCount  := conn.ExecSQL('begin select count(*) into :result from A; end;', [0]);


in ODAC

Code: Select all

function TOraSQL.FindResultParam: TDAParam;
begin
  Result := Params.FindParam('Result');
end;
in UniDAC

Code: Select all

function TUniSQL.FindResultParam: TDAParam;
var
  i: integer;
begin
  Result := nil;

  for i := 0 to Params.Count - 1 do
    if Params[i].ParamType = ptResult then
      Result := Params[i];

  if Result <> nil then
    if Result.DataType = ftUnknown then
      Result.DataType := ftInteger;    
end;

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

Re: From ODAC to UniDAC (2)

Post by AlexP » Thu 29 May 2014 09:44

Hello,

Thank you for the information. We will consider the possibility to change this behavior in the future.

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

Re: From ODAC to UniDAC (2)

Post by AlexP » Mon 14 Jul 2014 06:55

We have modified the behavior for UniDAC. These modifications will be included in the next version.

Post Reply