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

Intellisense fetches information about all databases in the cluster to show in autocomplete #1065

Open
1 of 5 tasks
rcaetanomeli opened this issue Dec 14, 2022 · 2 comments
Open
1 of 5 tasks
Labels

Comments

@rcaetanomeli
Copy link

rcaetanomeli commented Dec 14, 2022

Describe the bug
When I have more than one database in the same cluster/connection, the intellisense fetch all table names, columns, etc, of all databases, instead of only the one configured in the connection.

This is particulary not so good when I have multiple databases with the same structure (test and stage versions of the same database for example). In this case all table/column names get duplicated in the auto complete dropdown.

Expected behavior
If this is a feature, so we can use other databases in the same connection without having to create different connections, it would be good to remove the duplicates from the list.

Desktop (please complete the following information):

  • SQLTools Version 0.26.0
  • VS Code Version: 1.74
  • OS: Mac
  • Driver:
    • PostgreSQL/Redshift
    • MySQL/MariaDB
    • MSSQL/Azure
    • SQLite
    • Other? Which...
  • Database version: MySQL 8.0.17
@Noctumsempra
Copy link

Noctumsempra commented Jan 6, 2023

Hello, guys.

I'm on vscode, using SQLTools + MySQL/MariaDB driver.
I'm having an issue with AUTOCOMPLETE MENU, it not only shows info from more than one database than corresponding (I'm on DB "gofriz_mii" and also fetches from "gofriz_mii2" is it internally fetching info matching regexes instead of exact DB names?

It's confusing. Shows info from more than one table (regex match suspect on table name) and duplicated in the menu (2 servers setup, with those 2 DB each).

image

image

image

So, sometimes i get DOUBLE info (cause both DB names start with "gofriz_mii" and somehow grabs info from both) and sometimes 4 times like in the first screen. I hope this helps.

@fulf
Copy link

fulf commented Feb 12, 2024

+1 here.

I have tons of databases on the local MySQL server. I'd love for the SQLTools connection to get scoped only to the database inputted in the Database field.

This should include both SQL autocomplete, as well as when opening the connection in the explorer on the left.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants