Complete ODBC connection string also when reconnecting

Do this unconditionally as otherwise reconnecting using a connection
string not containing the login credentials would always fail.
This commit is contained in:
Vadim Zeitlin
2026-01-13 00:05:21 +01:00
parent 50da736807
commit a32e7cc401

View File

@@ -156,6 +156,11 @@ odbc_session_backend::odbc_session_backend(
if (parameters.is_option_on(option_reconnect))
{
completion = SQL_DRIVER_NOPROMPT;
// Use the previously completed connection string if we have one,
// otherwise reconnecting would always fail when using a connection
// string without credentials.
complete_connection_string(connectString);
}
else
{