MySQL 5 stored procedures and ZEOSDBO beta

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Asis
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: 13.12.2006, 12:56
Location: Mogilev

Post by Asis »

It seems to be a bug.
I couldn't found out the reason of this error but I've found some way to avoid or weaken it.

You may extract code that works with statement's resultset and move it in a single method.

Example:

Code: Select all

procedure DoExecute;
begin
  if  Stmt.Execute('call proc();') then begin
     DoProcessRS();
     //if Stmt.GetMoreResults then
     //   DoProcessRS_2;
  end;
end;
//-----------------------------------------

procedure DoProcessRS;
var Rs: IZResultset;
begin
   Rs := Stmt.GetResultSet;
   while (Rs <> nil) and (Rs.Next) do begin
        S := S + Rs.GetStringByName('name')+'; '+#13+#10;
   end;
   MessageBox(Self.Handle, PChar(S), 'result 1', MB_OK);
end;
Visor123
Fresh Boarder
Fresh Boarder
Posts: 22
Joined: 07.09.2005, 10:20
Location: Dnepr

Post by Visor123 »

The mysql error after open in query CALL ProcedureName();

CR_COMMANDS_OUT_OF_SYNC

method GetMoreResults not work with CALL (((
Version 6.6.2
SVN rev. 267
Post Reply