mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user