Changeset 34 for trunk/Application/UCustomApplication.pas
- Timestamp:
- Sep 13, 2010, 11:45:27 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/UCustomApplication.pas
r33 r34 76 76 DbRows: TDbRows; 77 77 begin 78 Database := TSqlDatabase.Create;79 78 with Database do begin 80 79 Hostname := DatabaseHostName; … … 84 83 Connect; 85 84 end; 86 DbRows := Database.Query('SET NAMES utf8'); 87 DbRows.Free; 85 try 86 DbRows := Database.Query('SET NAMES utf8'); 87 finally 88 DbRows.Free; 89 end; 88 90 end; 89 91 … … 93 95 TitleTag: THtmlString; 94 96 begin 95 HTTPServer.ShowExceptions := False;96 97 with HandlerData do begin 97 98 Style := ConfigStyle; … … 130 131 inherited; 131 132 Database := TSqlDatabase.Create; 132 InitDatabase;133 133 Pages := TObjectList.Create; 134 134 HtmlDocument := THtmlDocument.Create; … … 250 250 procedure TCustomApplication.Run; 251 251 begin 252 InitDatabase; 253 //Database.Query('SELECT * FROM ssss'); 252 254 HTTPServer.SessionStorage := THTTPSessionStorageMySQL.Create; 253 255 THTTPSessionStorageMySQL(HTTPServer.SessionStorage).SqlDatabase := Database;
Note:
See TracChangeset
for help on using the changeset viewer.