Skip to content

Commit

Permalink
Merge branch 'hotfix/5.22'
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Apr 16, 2023
2 parents 1a008f9 + b881dea commit 5e734b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion adodb-csvlib.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ function _rs2serialize(&$rs,$conn=false,$sql='')
$rs2 = new $class(ADORecordSet::DUMMY_QUERY_ID);
$rs2->timeCreated = $rs->timeCreated; # memcache fix
$rs2->sql = $rs->sql;
$rs2->oldProvider = $rs->dataProvider;
$rs2->InitArrayFields($rows,$flds);
$rs2->fetchMode = $savefetch;
return $line.serialize($rs2);
Expand Down
4 changes: 3 additions & 1 deletion drivers/adodb-postgres64.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ function qStr($s, $magic_quotes=false)
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 );
}
}

Expand Down

0 comments on commit 5e734b0

Please sign in to comment.