mssql-cli icon indicating copy to clipboard operation
mssql-cli copied to clipboard

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

Open kstarzyk opened this issue 5 years ago • 0 comments

I experience similar issue to #408

  1. Connect to host
$ mssql-cli -U <user> -P <password> -S <host>
master >
  1. Switching to different DB
master> use test_db;
Time: 0.252s
Commands completed successfully.
master>
  1. 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 <user> -P <password> -S <host> -d test_db
test_db>

However use command still does not change prompt name

Version 1.0.0

kstarzyk avatar Jul 08 '20 11:07 kstarzyk