Skip to content

Exploring a different database in the connection explorer with the same schema shows incorrect data #608

Open
@akashagarwal7

Description

@akashagarwal7

Describe the bug
Exploring a different database in the connection explorer with the same schema shows incorrect data. I am guessing this has something to do with the database configured in the subject connection's settings.

To Reproduce
Steps to reproduce the behavior:

  1. Say you have a project 'app' configured to run in different environments, dev and test.
  2. Consequently, you have app_dev and app_test databases.
  3. You have a connection for app_dev in SQLTools named localhost_con.
  4. Now, if both the databases exist on the same host and are accessible to the same user/password combination, app_test will show up when you connect using localhost_con.
  5. Exploring app_test's content will actually show app_dev's content.

Expected behavior
Exploring app_test's content will actually show app_dev's content, which is wrong.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • SQLTools Version: 0.22.5
  • VSCode Version:
Version: 1.44.0
Commit: 2aae1f26c72891c399f860409176fe435a154b13
Date: 2020-04-08T08:23:56.137Z (1 mo ago)
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 18.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    mysqlMySQL / MariaDB drivertriage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions