REFRESH BUG in UniDAC?

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Tugrul Tamturk
Posts: 32
Joined: Mon 25 Aug 2008 18:28

REFRESH BUG in UniDAC?

Post by Tugrul Tamturk » Sun 26 Apr 2009 09:20

I use UniDac for a while and I replace AdoDataset.Requery method with UniQuery.Refresh.. It seems ok for the begining..

But sometime later, I study on FetchAll = False mode. I use

Exec('SELECT * FROM SOMETABLE' + :STRPARAM )

style statements and then I realise Refresh is not doing its job. I have to use Close and Open UniQuery.. It is runing but I know in Ado Close and Open for refresh is not efficient way, ms offers Requery instead. But there is no Requery in Unidac as I know..

Is it only and efficient method close and open? Or Is there better way?

Thanks
Last edited by Tugrul Tamturk on Sun 03 May 2009 18:45, edited 1 time in total.

Tugrul Tamturk
Posts: 32
Joined: Mon 25 Aug 2008 18:28

Re: What is equalent of ADO Requery method exactly in UniDAC?

Post by Tugrul Tamturk » Sun 26 Apr 2009 15:37

I give an example for my question.

UniQuery1.Sql.TExt := 'EXEC('#39'SELECT * FROM SOMETABLE '#39+ ' :WHEREST)';

UniQuery1.DisableControls;
try
UniQuery1.Close;
UniQuery1.Params.ParamByName('WHEREST').Value := ' WHERE ASTRFIELD LIKE '#39 + 'C%'+#39;
UniQuery1.Open;
finally
UniQuery1.EnableControls;
end;

I would prefer like this. But for SpecificOptions.Values['FetchAll'] := 'False', this Refresh method is not do the job !

UniQuery1.Params.ParamByName('WHEREST').Value := ' WHERE ASTRFIELD LIKE '#39 + 'C%'+#39;
UniQuery1.Refresh;

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 28 Apr 2009 07:18

I could not reproduce the problem.
Please send me a complete small sample to dmitryg*devart*com to demonstrate it, including a script to create and fill table.

Tugrul Tamturk
Posts: 32
Joined: Mon 25 Aug 2008 18:28

Post by Tugrul Tamturk » Wed 29 Apr 2009 09:24

Hi,

I just sent the sample delphi project and mssql data backup file to you, Dmitry.

Tugrul

Tugrul Tamturk
Posts: 32
Joined: Mon 25 Aug 2008 18:28

REFRESH BUG

Post by Tugrul Tamturk » Sun 03 May 2009 18:44

Hi,

Do you confirm you got the sample delphi project Dmitry. And it seems now, it's Refresh bug with tables recordcount > 10.000...

Tugrul

Tugrul Tamturk
Posts: 32
Joined: Mon 25 Aug 2008 18:28

Re: REFRESH BUG

Post by Tugrul Tamturk » Tue 05 May 2009 07:15

This seems like serios problem.. I need urgent response

Unidac version 2.00.0.4 and Delphi2007 Ent.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 05 May 2009 12:29

We have answered you by e-mail.

Tugrul Tamturk
Posts: 32
Joined: Mon 25 Aug 2008 18:28

Post by Tugrul Tamturk » Tue 05 May 2009 12:48

I do not understand Russian. :( .. Thanks for fast reply anyway...

Post Reply