mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
Allow spaces in connection strings in SSL tests
Connection strings can have items with spaces in them, wrapped in quotes. The tests however ran a SELECT '$connstr' upon connection which broke on the embedded quotes. Use dollar quotes on the connstr to protect against this. This was hit during the development of the macOS Secure Transport patch, but is independent of it. Author: Daniel Gustafsson <daniel@yesql.se>
This commit is contained in:
parent
945f71db84
commit
4a3fdbdf76
@ -42,7 +42,7 @@ sub run_test_psql
|
||||
my $logstring = $_[1];
|
||||
|
||||
my $cmd = [
|
||||
'psql', '-X', '-A', '-t', '-c', "SELECT 'connected with $connstr'",
|
||||
'psql', '-X', '-A', '-t', '-c', "SELECT \$\$connected with $connstr\$\$",
|
||||
'-d', "$connstr" ];
|
||||
|
||||
my $result = run_log($cmd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user