diff --git a/programs/local/LocalChdb.cpp b/programs/local/LocalChdb.cpp index 2ba5a47c92d..20e8e0c934b 100644 --- a/programs/local/LocalChdb.cpp +++ b/programs/local/LocalChdb.cpp @@ -86,7 +86,7 @@ std::pair> connection_wrapper::p std::string path; std::map params; - if (conn_str == ":memory:") + if (conn_str.empty() || conn_str == ":memory:") { return {":memory:", params}; }