mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 03:01:07 +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;
|
||||
begin
|
||||
if not FCreateCodeFetched then try
|
||||
FCreateCode := Connection.GetCreateCode(Database, Name, NodeType);
|
||||
except
|
||||
CreateCode := Connection.GetCreateCode(Database, Name, NodeType);
|
||||
except on E:Exception do
|
||||
Connection.Log(lcError, E.Message);
|
||||
end;
|
||||
FCreateCodeFetched := True;
|
||||
Result := FCreateCode;
|
||||
end;
|
||||
|
||||
|
Reference in New Issue
Block a user