Remove pg_set_client_encoding() from db_connect(), db_pconnect()
diff --git a/system/database/drivers/postgre/postgre_driver.php b/system/database/drivers/postgre/postgre_driver.php
index ce5dc96..d8b4369 100644
--- a/system/database/drivers/postgre/postgre_driver.php
+++ b/system/database/drivers/postgre/postgre_driver.php
@@ -126,13 +126,7 @@
*/
public function db_connect()
{
- $ret = @pg_connect($this->dsn);
- if (is_resource($ret) && $this->char_set != '')
- {
- pg_set_client_encoding($ret, $this->char_set);
- }
-
- return $ret;
+ return @pg_connect($this->dsn);
}
// --------------------------------------------------------------------
@@ -144,13 +138,7 @@
*/
public function db_pconnect()
{
- $ret = @pg_pconnect($this->dsn);
- if (is_resource($ret) && $this->char_set != '')
- {
- pg_set_client_encoding($ret, $this->char_set);
- }
-
- return $ret;
+ return @pg_pconnect($this->dsn);
}
// --------------------------------------------------------------------