Ignore:
Timestamp:
Nov 15, 2011, 8:46:43 AM (13 years ago)
Author:
george
Message:
  • Moved: Units UPool and UResetableThread moved from CoolWeb to Common. Both units redone to more abstract reprezentation.
  • Added: New Port property in class TSqlDatabase.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Network/CoolWeb/Persistence/USqlDatabase.pas

    r258 r295  
    3939    FHostName: string;
    4040    FPassword: string;
     41    FPort: Word;
    4142    FSession: PMYSQL;
    4243    FConnected: Boolean;
     
    8182    property UserName: string read FUserName write FUserName;
    8283    property Password: string read FPassword write FPassword;
     84    property Port: Word read FPort write FPort;
    8385    property Encoding: string read FEncoding write FEncoding;
    8486    property OnLogQuery: TLogEvent read FOnLogQuery write FOnLogQuery;
     
    184186//  FSession.charset := 'latin2';
    185187  NewSession := mysql_real_connect(FSession, PChar(HostName), PChar(UserName),
    186     PChar(Password), PChar(Database), 3306, nil, CLIENT_LONG_PASSWORD + CLIENT_CONNECT_WITH_DB);
     188    PChar(Password), PChar(Database), FPort, nil, CLIENT_LONG_PASSWORD + CLIENT_CONNECT_WITH_DB);
    187189  if Assigned(NewSession) then begin
    188190    FConnected := True;
     
    360362  FSession := nil;
    361363  Encoding := 'utf8';
     364  FPort := 3306;
    362365end;
    363366
Note: See TracChangeset for help on using the changeset viewer.