REFRESH BUG in UniDAC?
-
- Posts: 32
- Joined: Mon 25 Aug 2008 18:28
REFRESH BUG in UniDAC?
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
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.
-
- Posts: 32
- Joined: Mon 25 Aug 2008 18:28
Re: What is equalent of ADO Requery method exactly in UniDAC?
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;
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;
-
- Posts: 32
- Joined: Mon 25 Aug 2008 18:28
-
- Posts: 32
- Joined: Mon 25 Aug 2008 18:28
REFRESH BUG
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
Do you confirm you got the sample delphi project Dmitry. And it seems now, it's Refresh bug with tables recordcount > 10.000...
Tugrul
-
- Posts: 32
- Joined: Mon 25 Aug 2008 18:28
Re: REFRESH BUG
This seems like serios problem.. I need urgent response
Unidac version 2.00.0.4 and Delphi2007 Ent.
Unidac version 2.00.0.4 and Delphi2007 Ent.
-
- Posts: 32
- Joined: Mon 25 Aug 2008 18:28