[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Bakonadi/1=2E5=5D_server/src/storage=3A_Make_sure_we?=
From:       Christophe Giboudeaux <cgiboudeaux () gmail ! com>
Date:       2011-02-28 23:19:50
Message-ID: 20110228231950.EEC9CA60C9 () git ! kde ! org
[Download RAW message or body]

Git commit dc910403152688ef4d79dddb29644b3c3de42332 by Christophe Giboudeaux.
Committed on 11/01/2011 at 14:54.
Pushed by cgiboudeaux into branch '1.5'.

Make sure we use the default DB name when using the internal server

BUG 262218
(cherry picked from commit 5a19a29162723a22088d4d91fcab1b833c54cc7f)

M  +3    -1    server/src/storage/dbconfigmysql.cpp     

http://commits.kde.org/akonadi/dc910403152688ef4d79dddb29644b3c3de42332

diff --git a/server/src/storage/dbconfigmysql.cpp b/server/src/storage/dbconfigmysql.cpp
index 9f6ad05..2910700 100644
--- a/server/src/storage/dbconfigmysql.cpp
+++ b/server/src/storage/dbconfigmysql.cpp
@@ -111,8 +111,10 @@ bool DbConfigMysql::init( QSettings &settings )
   settings.endGroup();
 
   // verify settings and apply permanent changes (written out below)
-  if ( mInternalServer )
+  if ( mInternalServer ) {
     mConnectionOptions = defaultOptions;
+    mDatabaseName = defaultDbName;
+  }
   if ( mInternalServer && (mServerPath.isEmpty() || !QFile::exists( mServerPath ) ) )
     mServerPath = defaultServerPath;
 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic