We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5220ce commit d9270d8Copy full SHA for d9270d8
php/libraries/Database.class.inc
@@ -108,6 +108,11 @@ class Database implements LoggerAwareInterface
108
109
}
110
111
+ $this->_PDO = new PDO(
112
+ "mysql:host=$host;dbname=$database;charset=UTF8",
113
+ $username,
114
+ $password
115
+ );
116
try {
117
$this->_PDO = new PDO(
118
"mysql:host=$host;dbname=$database;charset=UTF8",
@@ -117,6 +122,7 @@ class Database implements LoggerAwareInterface
122
} catch (PDOException $e) {
123
// This exception will not be included in the error log as it will
119
124
// likely include credentials.
125
+ throw $e;
120
126
throw new DatabaseException(
121
127
"Could not establish a PDO object using the following values: "
128
. "username: `$username`, dbname: `$database`, host: `$host` "
0 commit comments