mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 05:01:43 +00:00
add postgresql support
This commit is contained in:
parent
5bbce8ffee
commit
742d91cc68
|
@ -1223,6 +1223,7 @@ class Settings { /* {{{ */
|
||||||
case 'mysql':
|
case 'mysql':
|
||||||
case 'mysqli':
|
case 'mysqli':
|
||||||
case 'mysqlnd':
|
case 'mysqlnd':
|
||||||
|
case 'pgsql':
|
||||||
$tmp = explode(":", $this->_dbHostname);
|
$tmp = explode(":", $this->_dbHostname);
|
||||||
$dsn = $this->_dbDriver.":dbname=".$this->_dbDatabase.";host=".$tmp[0];
|
$dsn = $this->_dbDriver.":dbname=".$this->_dbDatabase.";host=".$tmp[0];
|
||||||
if(!empty($tmp[1]))
|
if(!empty($tmp[1]))
|
||||||
|
@ -1236,7 +1237,7 @@ class Settings { /* {{{ */
|
||||||
"status" => "notfound",
|
"status" => "notfound",
|
||||||
"type" => "error",
|
"type" => "error",
|
||||||
"currentvalue" => $this->_dbDriver,
|
"currentvalue" => $this->_dbDriver,
|
||||||
"suggestionvalue" => "mysql|sqlite"
|
"suggestionvalue" => "mysql|sqlite|pgsql"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if($dsn) {
|
if($dsn) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user