Skip to content

Commit

Permalink
while parse uri, overwrite the db_name with default (#1683)
Browse files Browse the repository at this point in the history
Signed-off-by: PowderLi <[email protected]>
  • Loading branch information
PowderLi authored Sep 8, 2023
1 parent 121c22c commit 41f9dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymilvus/orm/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit 41f9dac

Please sign in to comment.