You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the MySQL configuration has a multi-database setup, sql-language-server seems to only complete tables and fields from one of the databases at a time. For example, in a query like such.
SELECT*FROMdb1.starJOINdb2.planetONstar.coordinate BETWEEN planet.xANDplanet.y;
Finally, supporting multiple databases probably doesn't need to be specific to MySQL but made a specific request to start 🙂 .
Thanks in advance for considering this request 🙂 .
Workaround
In Neovim: As per README: Switch database connection, mapping the workspace/executeCommand method to call switchDatabaseConnection works fine when completing one database at a time.
Description
If the MySQL configuration has a multi-database setup,
sql-language-server
seems to only complete tables and fields from one of the databases at a time. For example, in a query like such.Possible code location:
sql-language-server/packages/server/src/database_libs/MysqlClient.ts
Line 30 in 03ef816
Finally, supporting multiple databases probably doesn't need to be specific to MySQL but made a specific request to start 🙂 .
Thanks in advance for considering this request 🙂 .
Workaround
In Neovim: As per README: Switch database connection, mapping the
workspace/executeCommand
method to callswitchDatabaseConnection
works fine when completing one database at a time.References
Following issues are possibly related.
json adapter
mode for autocompletion with multiple connections #223The text was updated successfully, but these errors were encountered: