Changeset 295 for Network/CoolWeb/Persistence
- Timestamp:
- Nov 15, 2011, 8:46:43 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Network/CoolWeb/Persistence/USqlDatabase.pas
r258 r295 39 39 FHostName: string; 40 40 FPassword: string; 41 FPort: Word; 41 42 FSession: PMYSQL; 42 43 FConnected: Boolean; … … 81 82 property UserName: string read FUserName write FUserName; 82 83 property Password: string read FPassword write FPassword; 84 property Port: Word read FPort write FPort; 83 85 property Encoding: string read FEncoding write FEncoding; 84 86 property OnLogQuery: TLogEvent read FOnLogQuery write FOnLogQuery; … … 184 186 // FSession.charset := 'latin2'; 185 187 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); 187 189 if Assigned(NewSession) then begin 188 190 FConnected := True; … … 360 362 FSession := nil; 361 363 Encoding := 'utf8'; 364 FPort := 3306; 362 365 end; 363 366
Note:
See TracChangeset
for help on using the changeset viewer.