dbcli / dbcli/mssql-cli

Switching db with `use` does not update db name in prompt

Open
#483 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
191
PR merge metrics
No merged PRs in 30d

Description

I experience similar issue to #408
1. Connect to host
```
$ mssql-cli -U -P -S
master >
```
2. Switching to different DB
```
master> use test_db;
Time: 0.252s
Commands completed successfully.
master>
```
3. Promp indicates "previous" db but context uses "new" db (`\lt` for instance returns tables from `test_db`);

If I start mssql-cli with `-d` flag it seems fine:
```
$ mssql-cli -U -P -S -d test_db
test_db>
```
However `use` command still does not change prompt name

Version 1.0.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.