Set original database for connection done through connection dialog (#17266)

* check if database connection

* Change name of isMaster and remove import

* Set to false

* take out connecttodatabase

* remove connecttodatabase

* Original database

* remove empty string check

* clean

* set original database for when saving connection

* pass unit test

* map -> find

* PR changes

* Comments for original database
This commit is contained in:
nasc17
2021-10-08 13:10:28 -07:00
committed by GitHub
parent a25dd2c03b
commit 75d6847a65
6 changed files with 37 additions and 28 deletions

View File

@@ -47,7 +47,7 @@ suite('Connection Utilities tests', () => {
test('isMaster - test if isMaster recognizes Connection Profile as server connection', () => {
assert(ConnectionUtils.isMaster(connection));
assert(ConnectionUtils.isServerConnection(connection));
});
test('parseTimeString - test if time is parsed correctly', () => {