mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 08:58:23 +02:00
* Some small corrections so code compiles with 2.6.4
git-svn-id: trunk@51186 -
This commit is contained in:
parent
f5509e82cb
commit
0f5b62ad4c
@ -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;
|
||||
|
@ -297,7 +297,7 @@ implementation
|
||||
|
||||
{$R *.lfm}
|
||||
|
||||
{$DEFINE HAVEMSSQLCONN}
|
||||
{ $DEFINE HAVEMSSQLCONN}
|
||||
|
||||
uses
|
||||
frmselectconnectiontype,
|
||||
|
Loading…
Reference in New Issue
Block a user