summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2021-08-19 17:30:26 +0200
committerDamien Regad <dregad@mantisbt.org>2021-08-19 17:30:26 +0200
commitf294101c501fd648f395427fa40f5e8be37a62ab (patch)
treead8c669beb92a1c0c68d1de22d3965169b8a2dae /drivers
parent55de14348c0ed1c7994dec7f10c8db0b8aee68e1 (diff)
downloadadodb-f294101c501fd648f395427fa40f5e8be37a62ab.tar.gz
adodb-f294101c501fd648f395427fa40f5e8be37a62ab.tar.bz2
adodb-f294101c501fd648f395427fa40f5e8be37a62ab.zip
Remove useless call to pg_version()
The function's return value is never used, since we get the client version from ServerInfo().
Diffstat (limited to 'drivers')
-rw-r--r--drivers/adodb-postgres64.inc.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/adodb-postgres64.inc.php b/drivers/adodb-postgres64.inc.php
index 18f48d12..9128467b 100644
--- a/drivers/adodb-postgres64.inc.php
+++ b/drivers/adodb-postgres64.inc.php
@@ -738,11 +738,11 @@ class ADODB_postgres64 extends ADOConnection{
# PHP does not handle 'hex' properly ('x74657374' is returned as 't657374')
# https://bugs.php.net/bug.php?id=59831 states this is in fact not a bug,
# so we manually set bytea_output
- if (!empty($this->connection->noBlobs) && version_compare($info['version'], '9.0', '>=')) {
- $version = pg_version($this->connectionID);
- if (version_compare($info['client'], '9.2', '<')) {
- $this->Execute('set bytea_output=escape');
- }
+ if (!empty($this->connection->noBlobs)
+ && version_compare($info['version'], '9.0', '>=')
+ && version_compare($info['client'], '9.2', '<')
+ ) {
+ $this->Execute('set bytea_output=escape');
}
return true;