mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 20:00:16 +08:00
Bugfix: Handle errors which happen during "async" query execution.
This commit is contained in:
@ -231,6 +231,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
end else begin
|
||||
try
|
||||
if ExpectResultSet(FSql) then begin
|
||||
r := RunDataQuery (FSql,TDataSet(q),ex,FCallback);
|
||||
if r then begin
|
||||
@ -243,6 +244,11 @@ begin
|
||||
|
||||
if r then SetState (MQR_SUCCESS,'SUCCESS')
|
||||
else SetState (MQR_QUERY_FAIL,ex.Msg);
|
||||
except
|
||||
on E: Exception do begin
|
||||
SetState (MQR_QUERY_FAIL,Format('%s', [E.Message]));
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Reference in New Issue
Block a user