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

confusing behavior when passing --alias #532

Closed
edublancas opened this issue May 27, 2023 · 0 comments · Fixed by #600
Closed

confusing behavior when passing --alias #532

edublancas opened this issue May 27, 2023 · 0 comments · Fixed by #600
Assignees
Labels
bug Something isn't working

Comments

@edublancas
Copy link

when running %sql CONNECTION_STRING --alias ALIAS, a new connection is not created if there's an active connection with duckdb connection string, but this should not be the case, a new connection should be created:

In [1]: %load_ext sql

In [2]: %sql --connections
Out[2]:
Active connections:
+---------+-----+-------+
| current | url | alias |
+---------+-----+-------+
+---------+-----+-------+

In [3]: %sql duckdb://

In [4]: %sql --connections
Out[4]:
Active connections:
+---------+-----------+-------+
| current |    url    | alias |
+---------+-----------+-------+
|    *    | duckdb:// |       |
+---------+-----------+-------+

In [5]: %sql duckdb:// --alias newconnection

In [6]: %sql --connections
Out[6]:
Active connections:
+---------+-----------+-------+
| current |    url    | alias |
+---------+-----------+-------+
|    *    | duckdb:// |       |
+---------+-----------+-------+
@edublancas edublancas added the bug Something isn't working label May 27, 2023
This was referenced Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants