mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 20:50:20 +08:00
Make use of property writer SetCreateCode, and display errors in SQL log when GetCreateCode failed.
This commit is contained in:
@ -4974,10 +4974,10 @@ end;
|
|||||||
function TDBObject.GetCreateCode: String;
|
function TDBObject.GetCreateCode: String;
|
||||||
begin
|
begin
|
||||||
if not FCreateCodeFetched then try
|
if not FCreateCodeFetched then try
|
||||||
FCreateCode := Connection.GetCreateCode(Database, Name, NodeType);
|
CreateCode := Connection.GetCreateCode(Database, Name, NodeType);
|
||||||
except
|
except on E:Exception do
|
||||||
|
Connection.Log(lcError, E.Message);
|
||||||
end;
|
end;
|
||||||
FCreateCodeFetched := True;
|
|
||||||
Result := FCreateCode;
|
Result := FCreateCode;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user