Skip to content

Commit

Permalink
Fixed: ODBC DSN connection always used :memory: no matter what you se…
Browse files Browse the repository at this point in the history
…t in odbc.ini
  • Loading branch information
user authored and user committed Jan 13, 2025
1 parent f52a41f commit b511765
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/connect/driver_connect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ SQLRETURN SQL_API SQLConnect(SQLHDBC connection_handle, SQLCHAR *server_name, SQ
return ret;
}

dbc->dsn = OdbcUtils::ConvertSQLCHARToString(server_name);
duckdb::Connect connect(dbc, OdbcUtils::ConvertSQLCHARToString(server_name));

return connect.SetConnection();
Expand Down

0 comments on commit b511765

Please sign in to comment.