Changeset - bb8e202db996
[Not reviewed]
0 1 0
HanzZ - 13 years ago 2012-04-14 15:52:25
hanzz.k@gmail.com
Fixed default database for gatewaymode
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/storagebackend.cpp
Show inline comments
 
@@ -8,13 +8,13 @@
 
namespace Transport {
 

	
 
StorageBackend *StorageBackend::createBackend(Config *config, std::string &error) {
 
	StorageBackend *storageBackend = NULL;
 
#ifdef WITH_SQLITE
 
	if (CONFIG_STRING(config, "database.type") == "sqlite3" ||
 
		(CONFIG_STRING(config, "database.type") == "none" && CONFIG_BOOL(config, "service.server_mode"))) {
 
		(CONFIG_STRING(config, "database.type") == "none" && !CONFIG_BOOL(config, "service.server_mode"))) {
 
		storageBackend = new SQLite3Backend(config);
 
	}
 
#else
 
	if (CONFIG_STRING(config, "database.type") == "sqlite3") {
 
		error = "Libtransport is not compiled with sqlite3 backend support.";
 
	}
0 comments (0 inline, 0 general)