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

Completions for table names in PostgreSQL is not fully correct #1040

Open
1 of 5 tasks
DoctorKrolic opened this issue Nov 18, 2022 · 0 comments
Open
1 of 5 tasks

Completions for table names in PostgreSQL is not fully correct #1040

DoctorKrolic opened this issue Nov 18, 2022 · 0 comments
Labels

Comments

@DoctorKrolic
Copy link

To Reproduce:

CREATE TABLE "Games"();
DROP TABLE $$

Invoke completions at $$

Expected behavior:
Suggested completion automatically escapes name Games and results in "Games"
being inserted:
Code_JhDiwqyxdw

Actual behaviour:

  • The Games completion is suggested:
    Code_Xf9QBN4h2L
  • But after accepting completion it results in:
    Code_F1XdNljGPq
    ... which creates an error if executed

Desktop (please complete the following information):

  • SQLTools Version 0.26.0
  • VS Code Version: 1.73.1
  • OS: Windown 11 22H2
  • Driver:
    • PostgreSQL/Redshift
    • MySQL/MariaDB
    • MSSQL/Azure
    • SQLite
    • Other? Which...
  • Database version: PostgreSQL 14.5
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

1 participant