Problem with Unidac+Firebird

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Janex
Posts: 4
Joined: Mon 09 Jun 2014 15:47

Problem with Unidac+Firebird

Post by Janex » Wed 06 May 2015 08:48

Hi support.
I found some bug with get RowsUpdated in Firebird 2.5 + UniDAC 6.0.1.
code: TDBAccessUtils.GetICommand(Self).GetProp(prRowsUpdated, v)

If update statement is as "clear" SQL, then all work fine, but
when update statement is IN execute block - GetProp always return 0.
for example:

Code: Select all

UPDATE MYTABLE SET MYROW = 1; 
this work fine, but this:

Code: Select all

EXECUTE BLOCK
AS
BEGIN
  UPDATE MYTABLE SET MYROW = 1;
END
This always return zero via ....GetProp(prRowsUpdated, v) into v

WBR
Janex

Janex
Posts: 4
Joined: Mon 09 Jun 2014 15:47

Re: Problem with Unidac+Firebird

Post by Janex » Wed 06 May 2015 09:14

Possible to found where is error:

unit IBCClassesUni
procedure TGDSCommand.GetRowsAffected;
In first if..then must be also constant SQL_EX_EXECUTE_BLOCK ...

WBR
Janex

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Problem with Unidac+Firebird

Post by ViktorV » Wed 06 May 2015 12:03

Thank you for the information. We have reproduced the problem and investigation is in progress. We will inform you when we have any results.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Problem with Unidac+Firebird

Post by ViktorV » Thu 07 May 2015 07:21

We have fixed this issue, the fix will be included in the next IBDAC build.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Problem with Unidac+Firebird

Post by ViktorV » Tue 23 Jun 2015 09:36

The new IBDAC build with a fix for the issue is available for download now.

Post Reply