diff options
| author | mike.benoit <mikeb@timetrex.com> | 2015-05-27 07:53:21 -0700 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2015-08-12 00:44:18 +0200 |
| commit | 84a7122ae93b82238c6c37bd81d483c632e8b50c (patch) | |
| tree | 9e0c2329e18040b42b267efff7064f46e6ccc75c /drivers | |
| parent | 6cb3b08680d58f12c43a992dcec65f4068a7054d (diff) | |
| download | adodb-84a7122ae93b82238c6c37bd81d483c632e8b50c.tar.gz adodb-84a7122ae93b82238c6c37bd81d483c632e8b50c.tar.bz2 adodb-84a7122ae93b82238c6c37bd81d483c632e8b50c.zip | |
postgres: Noblob optimization
Saves one query for every connection when blobs arent being used.
Fixes #112
Signed-off-by: Damien Regad <dregad@mantisbt.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/adodb-postgres64.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/adodb-postgres64.inc.php b/drivers/adodb-postgres64.inc.php index 208490c3..cb15c637 100644 --- a/drivers/adodb-postgres64.inc.php +++ b/drivers/adodb-postgres64.inc.php @@ -737,7 +737,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 (version_compare($info['version'], '9.0', '>=')) { + if ( !empty($this->connection->noBlobs) && version_compare($info['version'], '9.0', '>=')) { $this->Execute('set bytea_output=escape'); } |
