Changeset 19435
- Timestamp:
- 02/05/19 16:01:11 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Database.h
r19236 r19435 76 76 set_option(new mysqlpp::CompressOption()); 77 77 78 set_option(new mysqlpp::ReconnectOption(true)); 79 78 80 // Connect to the database 79 81 if (!server.empty()) 80 connect(db.c_str(), server.c_str(), user.c_str(), passwd.c_str(), port); 82 reconnect(); 83 } 84 85 void reconnect() 86 { 87 connect(db.c_str(), server.c_str(), user.c_str(), passwd.c_str(), port); 81 88 } 82 89 };
Note:
See TracChangeset
for help on using the changeset viewer.