diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-04-03 19:48:32 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-04-03 19:48:32 +0200 |
commit | ab1d568b7b7bce779cd00c90cd99c6f43747575b (patch) | |
tree | 3e7b11a7c4ba3c24579327a16f7aadc02ad33d14 | |
parent | d753afc264692483ef62dd702eeb26ae5192831b (diff) |
Fix PostgreSQL connection strings
-rw-r--r-- | system/database/drivers/postgre/postgre_driver.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/database/drivers/postgre/postgre_driver.php b/system/database/drivers/postgre/postgre_driver.php index 5694691a3..8febd62c4 100644 --- a/system/database/drivers/postgre/postgre_driver.php +++ b/system/database/drivers/postgre/postgre_driver.php @@ -80,16 +80,16 @@ class CI_DB_postgre_driver extends CI_DB { $this->port = ''; } - $this->hostname === '' OR $this->dsn = 'host='.$this->hostname; + $this->hostname === '' OR $this->dsn = 'host='.$this->hostname.' '; if ( ! empty($this->port) && ctype_digit($this->port)) { - $this->dsn .= 'host='.$this->port.' '; + $this->dsn .= 'port='.$this->port.' '; } if ($this->username !== '') { - $this->dsn .= ' user='.$this->username.' '; + $this->dsn .= 'user='.$this->username.' '; /* An empty password is valid! * |