[solved] IZResultSet.BeforeFirst dont work
Posted: 17.09.2012, 22:03
Hello,
I'm using the ZDBC API to execute queries. Like this:
At one point I wish to return to the top of the resultset, before the first record:
But does not work. The pointer remains in the same position. The following works:
That would be a bug?
Database: mysql 5.5.25
ZEOS: 6.6.6
Best regards,
Josimar
I'm using the ZDBC API to execute queries. Like this:
Code: Select all
var
Rs: IZResultSet;
begin
Rs :=
ZConn.DbcConnection.CreateStatement.ExecuteQuery('SELECT A FROM T');
while Rs.Next do
begin
//
end;
Code: Select all
Rs.BeforeFirst;
Code: Select all
Rs.First;
Database: mysql 5.5.25
ZEOS: 6.6.6
Best regards,
Josimar