mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 17:49:13 +02:00
* Add Port to SQLConnector
git-svn-id: trunk@48358 -
This commit is contained in:
parent
9803318fef
commit
25e2f29e01
@ -802,6 +802,7 @@ type
|
|||||||
Property Proxy : TSQLConnection Read FProxy;
|
Property Proxy : TSQLConnection Read FProxy;
|
||||||
Published
|
Published
|
||||||
Property ConnectorType : String Read FConnectorType Write SetConnectorType;
|
Property ConnectorType : String Read FConnectorType Write SetConnectorType;
|
||||||
|
Property Port;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TSQLConnectionClass = Class of TSQLConnection;
|
TSQLConnectionClass = Class of TSQLConnection;
|
||||||
@ -1197,8 +1198,12 @@ end;
|
|||||||
|
|
||||||
procedure TCustomSQLStatement.DeAllocateCursor;
|
procedure TCustomSQLStatement.DeAllocateCursor;
|
||||||
begin
|
begin
|
||||||
if Assigned(FCursor) and Assigned(Database) then
|
if Assigned(FCursor) then
|
||||||
DataBase.DeAllocateCursorHandle(FCursor);
|
begin
|
||||||
|
if Assigned(Database) then
|
||||||
|
DataBase.DeAllocateCursorHandle(FCursor);
|
||||||
|
FreeAndNil(FCursor);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TCustomSQLStatement.ExpandMacros( OrigSQL : String ) : String;
|
function TCustomSQLStatement.ExpandMacros( OrigSQL : String ) : String;
|
||||||
@ -1515,6 +1520,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
finally;
|
finally;
|
||||||
DeAllocateCursorHandle(Cursor);
|
DeAllocateCursorHandle(Cursor);
|
||||||
|
FreeAndNil(Cursor);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user