Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Commit

Permalink
# Please see issue #45 (#45).
Browse files Browse the repository at this point in the history
  • Loading branch information
silvioprog committed Jul 13, 2013
1 parent 7759ae1 commit b48ebca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions brokers/brookadsbroker.pas
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ TBrookADSQuery = class(TBrookQuery)
TBrookADSDataBase = class(TBrookDataBase)
private
FConn: TAdsConnection;
FSettings: TAdsSettings;
protected
function GetConnected: Boolean; override;
function GetDatabase: string; override;
Expand All @@ -81,6 +82,7 @@ TBrookADSDataBase = class(TBrookDataBase)
function GetConnection: TObject; override;
public
constructor Init; override;
destructor Destroy; override;
class function GetLibrary: string; override;
procedure Connect; override;
procedure Disconnect; override;
Expand Down Expand Up @@ -236,6 +238,15 @@ constructor TBrookADSDataBase.Init;
inherited Init;
FConn := TAdsConnection.Create(nil);
FConn.AdsServerTypes := [stADS_LOCAL];
FSettings := TAdsSettings.Create(nil);
FSettings.AdsServerTypes:= [stADS_LOCAL];
FSettings.ShowDeleted:= false;
end;

destructor TBrookADSDataBase.Destroy;
begin
FSettings.Free;
inherited Destroy;
end;

function TBrookADSDataBase.GetPort: Integer;
Expand Down

0 comments on commit b48ebca

Please sign in to comment.