Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

while parse uri, overwrite the db_name with default #1683

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading