summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/adodb-postgres64.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/adodb-postgres64.inc.php b/drivers/adodb-postgres64.inc.php
index fa8e5fba..23a21958 100644
--- a/drivers/adodb-postgres64.inc.php
+++ b/drivers/adodb-postgres64.inc.php
@@ -258,7 +258,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 );
}
}