diff options
| author | Damien Regad <dregad@mantisbt.org> | 2021-03-08 18:36:02 +0100 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2021-03-08 18:36:02 +0100 |
| commit | 2b89b34c6d0696b866dfe4b51fd3c67190ad8c80 (patch) | |
| tree | 50285c76d9df123cef5842fa5411baf690a64696 /drivers/adodb-postgres7.inc.php | |
| parent | def710065bb2b5d351a0d13b9859cf4b1334787a (diff) | |
| download | adodb-2b89b34c6d0696b866dfe4b51fd3c67190ad8c80.tar.gz adodb-2b89b34c6d0696b866dfe4b51fd3c67190ad8c80.tar.bz2 adodb-2b89b34c6d0696b866dfe4b51fd3c67190ad8c80.zip | |
Refactoring getCharSet and setCharSet
Simplify the code in mysqli and postgres7 drivers, and get rid of
unnecessary `@` error suppresion.
Diffstat (limited to 'drivers/adodb-postgres7.inc.php')
| -rw-r--r-- | drivers/adodb-postgres7.inc.php | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/adodb-postgres7.inc.php b/drivers/adodb-postgres7.inc.php index 38762bf3..d0fd78ad 100644 --- a/drivers/adodb-postgres7.inc.php +++ b/drivers/adodb-postgres7.inc.php @@ -283,12 +283,6 @@ class ADODB_postgres7 extends ADODB_postgres64 { if (!$this->_connectionID) { return false; } - $this->charSet = @pg_client_encoding($this->_connectionID); - if (!$this->charSet) { - return false; - } else { - return $this->charSet; - } $this->charSet = pg_client_encoding($this->_connectionID); return $this->charSet ?: false; } |
