From 2ecc869a2b85c4e480d52f9c7b84508aa021120b Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Wed, 22 Jul 2015 12:15:51 +0200 Subject: [PATCH] More database engine related fixes. --- pandora_server/util/pandora_database_check.pl | 2 +- pandora_server/util/pandora_db.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_server/util/pandora_database_check.pl b/pandora_server/util/pandora_database_check.pl index b6fc7bbfb1..6590fd6619 100755 --- a/pandora_server/util/pandora_database_check.pl +++ b/pandora_server/util/pandora_database_check.pl @@ -53,7 +53,7 @@ pandora_init(\%conf); pandora_load_config (\%conf); # Connect to the DB -my $dbh = db_connect ('mysql', $conf{'dbname'}, $conf{'dbhost'}, $conf{'dbport'}, $conf{'dbuser'}, $conf{'dbpass'}); +my $dbh = db_connect ($conf{'dbengine'}, $conf{'dbname'}, $conf{'dbhost'}, $conf{'dbport'}, $conf{'dbuser'}, $conf{'dbpass'}); my $history_dbh = ($conf{'_history_db_enabled'} eq '1') ? db_connect ('mysql', $conf{'_history_db_name'}, $conf{'_history_db_host'}, '3306', $conf{'_history_db_user'}, $conf{'_history_db_pass'}) : undef; diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl index c7276537c8..4e710afca4 100644 --- a/pandora_server/util/pandora_db.pl +++ b/pandora_server/util/pandora_db.pl @@ -1019,7 +1019,7 @@ else { } # Connect to the DB -my $dbh = db_connect ('mysql', $conf{'dbname'}, $conf{'dbhost'}, $conf{'dbport'}, $conf{'dbuser'}, $conf{'dbpass'}); +my $dbh = db_connect ($conf{'dbengine'}, $conf{'dbname'}, $conf{'dbhost'}, $conf{'dbport'}, $conf{'dbuser'}, $conf{'dbpass'}); my $history_dbh = ($conf{'_history_db_enabled'} eq '1') ? db_connect ('mysql', $conf{'_history_db_name'}, $conf{'_history_db_host'}, '3306', $conf{'_history_db_user'}, $conf{'_history_db_pass'}) : undef;