summaryrefslogtreecommitdiff
path: root/drivers/adodb-postgres64.inc.php
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2023-03-17 00:22:13 +0100
committerDamien Regad <dregad@mantisbt.org>2023-03-17 22:55:29 +0100
commitb5a88e7d3fafd2936fd093415ff7cf3277a7b9e2 (patch)
tree31b82a4b95ae939fce2f6afc7cf9f9b6a240e847 /drivers/adodb-postgres64.inc.php
parent23a3694f997495104723620527195a7d5d4b2567 (diff)
downloadadodb-b5a88e7d3fafd2936fd093415ff7cf3277a7b9e2.tar.gz
adodb-b5a88e7d3fafd2936fd093415ff7cf3277a7b9e2.tar.bz2
adodb-b5a88e7d3fafd2936fd093415ff7cf3277a7b9e2.zip
Revert "postgres: Noblob optimization"
This reverts commit 84a7122ae93b82238c6c37bd81d483c632e8b50c (PR #112) The ADOConnection object does not have a 'connection' property, and the 'noBlobs' flag is not documented or used anywhere else. The change's original contributor never provided any feedback [1], and usage of the undefined property is now throwing a deprecation warning on PHP 8.2. [1]: https://github.com/ADOdb/ADOdb/pull/112#issuecomment-902028719
Diffstat (limited to 'drivers/adodb-postgres64.inc.php')
-rw-r--r--drivers/adodb-postgres64.inc.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/adodb-postgres64.inc.php b/drivers/adodb-postgres64.inc.php
index c8da9430..185c675f 100644
--- a/drivers/adodb-postgres64.inc.php
+++ b/drivers/adodb-postgres64.inc.php
@@ -755,8 +755,7 @@ 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', '>=')
+ if (version_compare($info['version'], '9.0', '>=')
&& version_compare($info['client'], '9.2', '<')
) {
$this->Execute('set bytea_output=escape');