summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;