diff options
| author | Damien Regad <dregad@mantisbt.org> | 2023-04-16 15:37:06 +0200 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2023-04-16 15:37:06 +0200 |
| commit | 5e734b0b96bb4db7f1e8be94fbbfa81d892a8427 (patch) | |
| tree | e5ccdbd1301b491ee7fb82de58ca22b2ea3c0c2b /drivers/adodb-postgres64.inc.php | |
| parent | 1a008f9911b38a3dc19c755402d355e624c78b2e (diff) | |
| parent | b881dea297a93496fbd6d1d8a3c2fbe277c9231c (diff) | |
| download | adodb-5e734b0b96bb4db7f1e8be94fbbfa81d892a8427.tar.gz adodb-5e734b0b96bb4db7f1e8be94fbbfa81d892a8427.tar.bz2 adodb-5e734b0b96bb4db7f1e8be94fbbfa81d892a8427.zip | |
Merge branch 'hotfix/5.22'
Diffstat (limited to 'drivers/adodb-postgres64.inc.php')
| -rw-r--r-- | drivers/adodb-postgres64.inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/adodb-postgres64.inc.php b/drivers/adodb-postgres64.inc.php index 9becaf4e..a198423d 100644 --- a/drivers/adodb-postgres64.inc.php +++ b/drivers/adodb-postgres64.inc.php @@ -272,7 +272,9 @@ class ADODB_postgres64 extends ADOConnection{ if ($this->_connectionID) { return "'" . pg_escape_string($this->_connectionID, $s) . "'"; } else { - return "'" . pg_escape_string($s) . "'"; + // Fall back to emulated escaping when there is no database connection. + // Avoids errors when using setSessionVariables() in the load balancer. + return parent::qStr( $s ); } } |
