Skip to content
Permalink
Browse files

Merge PR #3039: Updating ServerDB.cpp to check for MySQL, SQLite, and…

… Postgres
  • Loading branch information...
mkrautz committed Apr 21, 2017
2 parents a935808 + 5669cf1 commit 65c25009b043dbaef5b7022702461691307f795c
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/murmur/ServerDB.cpp
@@ -80,6 +80,9 @@ void ServerDB::loadOrSetupMetaPKBDF2IterationsCount(QSqlQuery &query) {
}

ServerDB::ServerDB() {
if (Meta::mp.qsDBDriver != QLatin1String("QMYSQL") && Meta::mp.qsDBDriver != QLatin1String("QSQLITE") && Meta::mp.qsDBDriver != QLatin1String("QPSQL")) {
qFatal("ServerDB: invalid DB driver specified: '%s'. Murmur only supports QSQLITE, QMYSQL, and QPSQL.", qPrintable(Meta::mp.qsDBDriver));
}
if (! QSqlDatabase::isDriverAvailable(Meta::mp.qsDBDriver)) {
qFatal("ServerDB: Database driver %s not available", qPrintable(Meta::mp.qsDBDriver));
}

0 comments on commit 65c2500

Please sign in to comment.
You can’t perform that action at this time.