diff options
author | Andrey Andreev <narf@devilix.net> | 2015-12-14 17:06:49 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-12-14 17:06:49 +0100 |
commit | f437fd20a78b9f28405d1ebba5f7ed53b1a33545 (patch) | |
tree | 84d0d9da565df9bb19694c5f81fbcc195ebd1f79 /system/database/drivers/postgre/postgre_driver.php | |
parent | d3c8134b1342dc403df2faf3e63e4bdcdfbd4b92 (diff) |
Fix erroneous variables from 85bc9fc53e4c3e46b2f4e1b1eac7e2828d4869e6
Diffstat (limited to 'system/database/drivers/postgre/postgre_driver.php')
-rw-r--r-- | system/database/drivers/postgre/postgre_driver.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/postgre/postgre_driver.php b/system/database/drivers/postgre/postgre_driver.php index e4db12d69..2d4e5a5d5 100644 --- a/system/database/drivers/postgre/postgre_driver.php +++ b/system/database/drivers/postgre/postgre_driver.php @@ -163,11 +163,11 @@ class CI_DB_postgre_driver extends CI_DB { return FALSE; } - if (pg_set_client_encoding($this->conn_id, $charset) !== 0) + if (pg_set_client_encoding($this->conn_id, $this->char_set) !== 0) { log_message('error', "Database: Unable to set the configured connection charset ('{$this->char_set}')."); pg_close($this->conn_id); - return ($this->db->db_debug) ? $this->display_error('db_unable_to_set_charset', $charset) : FALSE; + return ($this->db->db_debug) ? $this->display_error('db_unable_to_set_charset', $this->char_set) : FALSE; } empty($this->schema) OR $this->simple_query('SET search_path TO '.$this->schema.',public'); |