mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 18:12:05 +08:00
Bugfix: EnsureActiveDatabase() is a helper function, it shouldn't gobble up exceptions.
(There we go with that default "HandleErrors = true" thing again...)
This commit is contained in:
@ -1829,7 +1829,7 @@ begin
|
|||||||
if ActualDatabase = '' then Exit;
|
if ActualDatabase = '' then Exit;
|
||||||
if (FMysqlConn.Connection.Database <> ActualDatabase) or UserQueryFired then begin
|
if (FMysqlConn.Connection.Database <> ActualDatabase) or UserQueryFired then begin
|
||||||
FMysqlConn.Connection.Database := ActualDatabase;
|
FMysqlConn.Connection.Database := ActualDatabase;
|
||||||
ExecUseQuery(ActualDatabase);
|
ExecUseQuery(ActualDatabase, false, false);
|
||||||
UserQueryFired := false;
|
UserQueryFired := false;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user