Permanent errors in 6.6.6 stable - MSSQL Server
Posted: 29.09.2011, 11:39
Hello,
I continuously receive various types of Exceptions all coming from TZDBLibMSSQL7PlainDriver.CheckError; mostly not derived down to any specific class, probably from the last line, but not always.
I'm afraid the primary reason is the TODO comment at the beginning of the method.
Can I expect that function to be implemented in the near future ?
What can I do until then ?
You can see relative line numbers in the attached report in brackets.
Any help will be highly appreciated.
Thanks, Peter
-----
Delphi 5.0 (I know it's one of the oldest)
ZeosDBO 6.6.6-stable
EurekaLog 6.0.14
I continuously receive various types of Exceptions all coming from TZDBLibMSSQL7PlainDriver.CheckError; mostly not derived down to any specific class, probably from the last line, but not always.
I'm afraid the primary reason is the TODO comment at the beginning of the method.
Can I expect that function to be implemented in the near future ?
What can I do until then ?
Code: Select all
procedure TZDBLibMSSQL7PlainDriver.CheckError;
var
I: Integer;
S: string;
lErrorEntry: PDBLibError;
lMesageEntry: PDBLibMessage;
begin
{ TODO -ofjanos -cGeneral : Error handling should be based on connection object.
At the moment it is global. }
if (MSSqlErrors.Count = 0) and (MSSqlMessages.Count = 0) then
Exit;
S := '';
for I := 0 to MSSqlErrors.Count - 1 do
S := S + PDBLibError(MSSqlErrors.Items[I]).DbErrStr + ' '
+ PDBLibError(MSSqlErrors.Items[I]).OsErrStr + ' '#13;
for I := 0 to MSSqlMessages.Count - 1 do
if PDBLibMessage(MSSqlMessages.Items[I]).Severity > EXINFO then
S := S + PDBLibMessage(MSSqlMessages.Items[I]).MsgText + ' '#13;
while MSSqlErrors.Count > 0 do
begin
lErrorEntry := MSSqlErrors.Items[0];
Dispose(lErrorEntry);
MSSqlErrors.Delete(0);
end;
MSSqlErrors.Clear;
while MSSqlMessages.Count > 0 do
begin
lMesageEntry := MSSqlMessages.Items[0];
Dispose(lMesageEntry);
MSSqlMessages.Delete(0);
end;
MSSqlMessages.Clear;
if S <> '' then
raise Exception.Create(S);
end;
Any help will be highly appreciated.
Thanks, Peter
-----
Delphi 5.0 (I know it's one of the oldest)
ZeosDBO 6.6.6-stable
EurekaLog 6.0.14