From 41f9dac548f3b35b98b276f28d1926f3eddd1f3d Mon Sep 17 00:00:00 2001 From: PowderLi <135960789+PowderLi@users.noreply.github.com> Date: Fri, 8 Sep 2023 17:41:10 +0800 Subject: [PATCH] while parse uri, overwrite the db_name with default (#1683) Signed-off-by: PowderLi --- pymilvus/orm/connections.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pymilvus/orm/connections.py b/pymilvus/orm/connections.py index e3b77db0e..66a3f4315 100644 --- a/pymilvus/orm/connections.py +++ b/pymilvus/orm/connections.py @@ -238,7 +238,7 @@ def connect( alias: str = Config.MILVUS_CONN_ALIAS, user: str = "", password: str = "", - db_name: str = "", + db_name: str = "default", token: str = "", **kwargs, ) -> None: @@ -345,7 +345,7 @@ def with_config(config: Tuple) -> bool: password = parsed_uri.password or password group = parsed_uri.path.split("/") - db_name = group[1] if len(group) > 1 else "default" + db_name = group[1] if len(group) > 1 else db_name # Set secure=True if https scheme if parsed_uri.scheme == "https":