mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
* Clear the database hint after reconnection.
* Make the connected hint public, so an outside caller can check whether a Reconnect() is useful or not.
This commit is contained in:
@ -158,7 +158,6 @@ type
|
|||||||
procedure DoRollback;
|
procedure DoRollback;
|
||||||
procedure DoStartTransaction;
|
procedure DoStartTransaction;
|
||||||
|
|
||||||
procedure CheckConnected;
|
|
||||||
procedure CheckAutoCommitMode;
|
procedure CheckAutoCommitMode;
|
||||||
procedure CheckNonAutoCommitMode;
|
procedure CheckNonAutoCommitMode;
|
||||||
|
|
||||||
@ -185,6 +184,7 @@ type
|
|||||||
function GetAffectedRowsFromLastPost: Int64;
|
function GetAffectedRowsFromLastPost: Int64;
|
||||||
function GetThreadId: Cardinal;
|
function GetThreadId: Cardinal;
|
||||||
function GetEscapeString(const Value: string): string;
|
function GetEscapeString(const Value: string): string;
|
||||||
|
procedure CheckConnected;
|
||||||
|
|
||||||
procedure StartTransaction; virtual;
|
procedure StartTransaction; virtual;
|
||||||
procedure Commit; virtual;
|
procedure Commit; virtual;
|
||||||
@ -704,6 +704,7 @@ begin
|
|||||||
try
|
try
|
||||||
FConnection.Close;
|
FConnection.Close;
|
||||||
FConnection.Open;
|
FConnection.Open;
|
||||||
|
Database := '';
|
||||||
except
|
except
|
||||||
CloseAllDataSets;
|
CloseAllDataSets;
|
||||||
raise;
|
raise;
|
||||||
|
Reference in New Issue
Block a user