UniDAC + Lazarus - FindFirst and FindNext always return false

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jz
Posts: 8
Joined: Fri 04 Jan 2008 14:14

UniDAC + Lazarus - FindFirst and FindNext always return false

Post by jz » Thu 20 Jul 2017 10:19

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?

jz
Posts: 8
Joined: Fri 04 Jan 2008 14:14

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

Post by jz » Thu 20 Jul 2017 11:52

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.

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

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

Post by ViktorV » Mon 24 Jul 2017 12:34

Thank you for the information. We have reproduced the problem and it will be fixed in the next build.

Post Reply