Skip to content

Commit

Permalink
If conn_str empty, use :memory:
Browse files Browse the repository at this point in the history
  • Loading branch information
auxten committed Nov 13, 2024
1 parent a4b8d9c commit b8f44e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/local/LocalChdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ std::pair<std::string, std::map<std::string, std::string>> connection_wrapper::p
std::string path;
std::map<std::string, std::string> params;

if (conn_str == ":memory:")
if (conn_str.empty() || conn_str == ":memory:")
{
return {":memory:", params};
}
Expand Down

0 comments on commit b8f44e3

Please sign in to comment.