summaryrefslogtreecommitdiff
path: root/avx512-0037785/packages/fcl-db/src/sqldb/sqldb.pp
diff options
context:
space:
mode:
Diffstat (limited to 'avx512-0037785/packages/fcl-db/src/sqldb/sqldb.pp')
-rw-r--r--avx512-0037785/packages/fcl-db/src/sqldb/sqldb.pp10
1 files changed, 8 insertions, 2 deletions
diff --git a/avx512-0037785/packages/fcl-db/src/sqldb/sqldb.pp b/avx512-0037785/packages/fcl-db/src/sqldb/sqldb.pp
index 88aca65cae..3118e0f545 100644
--- a/avx512-0037785/packages/fcl-db/src/sqldb/sqldb.pp
+++ b/avx512-0037785/packages/fcl-db/src/sqldb/sqldb.pp
@@ -802,6 +802,7 @@ type
Property Proxy : TSQLConnection Read FProxy;
Published
Property ConnectorType : String Read FConnectorType Write SetConnectorType;
+ Property Port;
end;
TSQLConnectionClass = Class of TSQLConnection;
@@ -1197,8 +1198,12 @@ end;
procedure TCustomSQLStatement.DeAllocateCursor;
begin
- if Assigned(FCursor) and Assigned(Database) then
- DataBase.DeAllocateCursorHandle(FCursor);
+ if Assigned(FCursor) then
+ begin
+ if Assigned(Database) then
+ DataBase.DeAllocateCursorHandle(FCursor);
+ FreeAndNil(FCursor);
+ end;
end;
function TCustomSQLStatement.ExpandMacros( OrigSQL : String ) : String;
@@ -1515,6 +1520,7 @@ begin
end;
finally;
DeAllocateCursorHandle(Cursor);
+ FreeAndNil(Cursor);
end;
end;