* Some small corrections so code compiles with 2.6.4

git-svn-id: trunk@51186 -
This commit is contained in:
michael 2016-01-04 13:41:09 +00:00
parent f5509e82cb
commit 0f5b62ad4c
2 changed files with 7 additions and 1 deletions

View File

@ -561,7 +561,11 @@ begin
RowsAff:=Format(SRecordsFetched,[DS.RecordCount]);
end;
MResult.Append(Format(SSQLExecutedOK,[DateTimeToStr(TE)]));
{$IFDEF VER2_6}
MResult.Append(Format(SExecutionTime,[FormatDateTime('hh:nn:ss.zzz',TE-TS)]));
{$ELSE}
MResult.Append(Format(SExecutionTime,[FormatDateTime('hh:nn:ss.zzz',TE-TS,[fdoInterval])]));
{$ENDIF}
if (RowsAff<>'') then
MResult.Append(RowsAff);
AddToHistory(Qry);
@ -585,6 +589,7 @@ begin
DoExecuteQuery(Qry,ACount);
Result:=True;
except
{$IFNDEF VER2_6}
on Ed : ESQLDatabaseError do
begin
Msg:=Ed.Message;
@ -593,6 +598,7 @@ begin
if (Ed.SQLState<>'') then
Msg:=Msg+sLineBreak+Format(SSQLStatus,[Ed.SQLState]);
end;
{$ENDIF}
On E : EDatabaseError do
begin
Msg:=E.Message;

View File

@ -297,7 +297,7 @@ implementation
{$R *.lfm}
{$DEFINE HAVEMSSQLCONN}
{ $DEFINE HAVEMSSQLCONN}
uses
frmselectconnectiontype,