Page 1 of 1

UniDAC + Lazarus - FindFirst and FindNext always return false

Posted: Thu 20 Jul 2017 10:19
by jz
Hi!
I use latest Lazarus + latest UniDAC. I created simple app with one UniConnetion, one UniQuery objects (I tried UniTable too - result was the same) and one UniProvider. I testes it with mySQL and MSSQL. The problem is that after opening any table or query I cannot use datasets methods: FindFirst and FindNext, they always return false. In the same time RecordCount shows proper number of rows, I can also see records in Grid. What am I doing wrong?

Re: UniDAC + Lazarus - FindFirst and FindNext always return false

Posted: Thu 20 Jul 2017 11:52
by jz
Ok, I found solution, UniDAC seems to use another set of methods to iterate through datasets:

Code: Select all

DataSet.First;
while not DataSet.EOF do
begin
  // do something
  DataSet.Next;
end;
Anyway, it would be nice if methods that are implemented, but do not work as user may expect, would rise exception when called.

Re: UniDAC + Lazarus - FindFirst and FindNext always return false

Posted: Mon 24 Jul 2017 12:34
by ViktorV
Thank you for the information. We have reproduced the problem and it will be fixed in the next build.