Code: Select all
procedure TZAbstractPreparedStatement.Prepare;
begin
DriverManager.LogMessage(lcPrepStmt,Self);
PrepareInParameters;
FPrepared := True;
end;
procedure TZAbstractPreparedStatement.Unprepare;
begin
if Assigned(FOpenResultSet) then
begin
IZResultSet(FOpenResultSet).Close;
FOpenResultSet := nil;
end;
UnPrepareInParameters;
FPrepared := False;
Self.FInitialArrayCount := 0;
SetLength(FCachedQueryRaw, 0);
SetLength(FCachedQueryUni, 0);
DriverManager.LogMessage(lcUnprepStmt,Self); // missing unprepare logging
end;