Changeset 19236
- Timestamp:
- 10/17/18 10:54:06 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Database.h
r19211 r19236 23 23 DatabaseName(const std::string &database) : compression(0) 24 24 { 25 if (database.empty()) 26 return; 27 25 28 static const boost::regex expr("(([[:word:].-]+)(:(.+))?@)?([[:word:].-]+)(:([[:digit:]]+))?(/([[:word:].-]+))(\\?compress=[01])?"); 26 29 … … 74 77 75 78 // Connect to the database 76 connect(db.c_str(), server.c_str(), user.c_str(), passwd.c_str(), port); 79 if (!server.empty()) 80 connect(db.c_str(), server.c_str(), user.c_str(), passwd.c_str(), port); 77 81 } 78 82 };
Note:
See TracChangeset
for help on using the changeset viewer.