diff options
| author | Damien Regad <dregad@mantisbt.org> | 2023-03-17 23:36:20 +0100 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2023-03-17 23:36:20 +0100 |
| commit | 34e75679bee6ee5f18cf95442e4ddbbbef365844 (patch) | |
| tree | 74fafd750adbd46945ea4ab6835741a0b9bab55b /drivers/adodb-postgres64.inc.php | |
| parent | 92443a32ee7656c4e63b1378916136afb1e0f23f (diff) | |
| parent | 7e51937c9b5a42b22cfbcea0d7235e432ebf5bcf (diff) | |
| download | adodb-34e75679bee6ee5f18cf95442e4ddbbbef365844.tar.gz adodb-34e75679bee6ee5f18cf95442e4ddbbbef365844.tar.bz2 adodb-34e75679bee6ee5f18cf95442e4ddbbbef365844.zip | |
Merge branch 'hotfix/5.22'
Diffstat (limited to 'drivers/adodb-postgres64.inc.php')
| -rw-r--r-- | drivers/adodb-postgres64.inc.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/adodb-postgres64.inc.php b/drivers/adodb-postgres64.inc.php index 30d0ed68..5eedc6b1 100644 --- a/drivers/adodb-postgres64.inc.php +++ b/drivers/adodb-postgres64.inc.php @@ -780,8 +780,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'); |
