add postgresql support

This commit is contained in:
Uwe Steinmann 2017-02-28 07:39:39 +01:00
parent 5bbce8ffee
commit 742d91cc68

View File

@ -1223,6 +1223,7 @@ class Settings { /* {{{ */
case 'mysql':
case 'mysqli':
case 'mysqlnd':
case 'pgsql':
$tmp = explode(":", $this->_dbHostname);
$dsn = $this->_dbDriver.":dbname=".$this->_dbDatabase.";host=".$tmp[0];
if(!empty($tmp[1]))
@ -1236,7 +1237,7 @@ class Settings { /* {{{ */
"status" => "notfound",
"type" => "error",
"currentvalue" => $this->_dbDriver,
"suggestionvalue" => "mysql|sqlite"
"suggestionvalue" => "mysql|sqlite|pgsql"
);
}
if($dsn) {