node-postgres/test/unit/connection-parameters
Sehrope Sarkuni ee8193673c Libpq connection string escaping (#1285)
* Fix escaping of libpq connection string properties

Fix handlings of libpq connection properties to properly escape single
quotes and backslashes. Previously the values were surrounded in single
quotes which handled whitespace within the property value, but internal
single quotes and backslashes would cause invalid connection strings to
be generated.

* Update expected output in test to be quoted

Update the expect host output in the connection parameter test
to expect it to be surrounded by single quotes.

* Add test for configs with quotes and backslashes
2017-05-15 12:19:13 -05:00
..
creation-tests.js Libpq connection string escaping (#1285) 2017-05-15 12:19:13 -05:00
environment-variable-tests.js Respect PGSSLMODE for setting SSL connection 2013-09-05 16:51:16 -05:00