Skip to content

Commit 4a3fdbd

Browse files
committed
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>
1 parent 945f71d commit 4a3fdbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/ssl/ServerSetup.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ sub run_test_psql
4242
my $logstring = $_[1];
4343

4444
my $cmd = [
45-
'psql', '-X', '-A', '-t', '-c', "SELECT 'connected with $connstr'",
45+
'psql', '-X', '-A', '-t', '-c', "SELECT \$\$connected with $connstr\$\$",
4646
'-d', "$connstr" ];
4747

4848
my $result = run_log($cmd);

0 commit comments

Comments
 (0)