HomePhorge

rdbms: escape backslashes in makeConnectionString for PostgreSQL

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

rdbms: escape backslashes in makeConnectionString for PostgreSQL

Prior to this commit, only single quotes were escaped in
makeConnectionString. However, backslashes should be as well, as per the
documentation of pg_connect: "Single quotes and backslashes within the
value must be escaped with a backslash, i.e., \' and \\."

Bug: T291753
Change-Id: Ib3e81be55a624bc51b82da3a72d61886fa1fae45
(cherry picked from commit eaa922d6217c7d64e129a7977a316791aa5863e5)

Details

Provenance
Thomas Daniels <daniels.thomas@pm.me>Authored on Jun 27 2022, 12:51 AM
Krinkle <krinkle@fastmail.com>Committed on Mar 5 2023, 1:57 AM

Event Timeline

Krinkle <krinkle@fastmail.com> committed rMW1fd5048b8a4a: rdbms: escape backslashes in makeConnectionString for PostgreSQL (authored by Thomas Daniels <daniels.thomas@pm.me>).Mar 5 2023, 1:57 AM

Commit No Longer Exists

This commit no longer exists in the repository.