Merge "Fix in database discrimination"

This commit is contained in:
Jenkins 2015-08-09 21:37:47 +00:00 committed by Gerrit Code Review
commit 8008752f2e
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ def connect():
DB_PASS = secure_config.get("database", "password")
DB_DB = gerrit_config.get("database", "database")
if DB_TYPE == "MYSQL":
if DB_TYPE.upper() == "MYSQL":
import MySQLdb
db_connection = MySQLdb.connect(
host=DB_HOST, user=DB_USER, passwd=DB_PASS, db=DB_DB)