summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorHiroshi Inoue2019-05-19 04:09:31 +0000
committerHiroshi Inoue2019-05-19 04:09:31 +0000
commit628f1cea6ffddb31c96db1658b763479c786d993 (patch)
tree105ed189d3d9650f9443035cb2cc2ad053e95f57 /setup.c
parent130d46bb8971ae4c1708272696854c95eb2d673b (diff)
Fix test_connection() in setup.c so that settings of conn_settings and pqopt option are reflected properly.
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup.c b/setup.c
index bd5dd37..9b2edcb 100644
--- a/setup.c
+++ b/setup.c
@@ -472,6 +472,10 @@ test_connection(HANDLE hwnd, ConnInfo *ci, BOOL withDTC)
dsn_1st = ci->dsn[0];
ci->dsn[0] = '\0';
+ if (NAME_IS_VALID(ci->conn_settings))
+ ci->conn_settings_in_str = TRUE;
+ if (NAME_IS_VALID(ci->pqopt))
+ ci->pqopt_in_str = TRUE;
makeConnectString(out_conn, ci, sizeof(out_conn));
MYLOG(0, "conn_string=%s\n", out_conn);
#ifdef UNICODE_SUPPORT