From 628f1cea6ffddb31c96db1658b763479c786d993 Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Sun, 19 May 2019 13:09:31 +0900 Subject: [PATCH] Fix test_connection() in setup.c so that settings of conn_settings and pqopt option are reflected properly. --- setup.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5