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

Formatting breaks postgres commands (e.g. \echo) #1259

Open
1 of 5 tasks
ostollmann opened this issue Dec 11, 2023 · 1 comment
Open
1 of 5 tasks

Formatting breaks postgres commands (e.g. \echo) #1259

ostollmann opened this issue Dec 11, 2023 · 1 comment

Comments

@ostollmann
Copy link

ostollmann commented Dec 11, 2023

Describe the bug
Formatting of Postgres commands breaks the commands.

To Reproduce
Steps to reproduce the behavior:

  1. Format the following:
\echo Hello
SELECT 1;
  1. Notice the invalid result:
\ echo Hi!
SELECT 1;

Expected behavior

\echo Hello
SELECT 1;

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

Desktop (please complete the following information):

  • SQLTools Version [e.g. v0.17.x]: v0.28.1
  • VS Code Version: [e.g 1.x.y]: latest
  • OS: [e.g. Windows, Linux, Mac]: Mac
  • Driver:
    • PostgreSQL/Redshift
    • MySQL/MariaDB
    • MSSQL/Azure
    • SQLite
    • Other? Which...
  • Database version: [e.g. MySQL v5.6, PostgreSQL vX...]

Additional context
Add any other context about the problem here.

@GitFenixZ
Copy link

GitFenixZ commented Feb 15, 2024

I also have the same problem !

This behavior can also be seen in the playground if you want to reproduce it in a convenient way.

Writing the queries below in the EDITOR section:

\echo "ECHO A";
\echo "ECHO B";
\echo "ECHO C";

will give the result below in the PREVIEW section:

\ echo "ECHO A";

\ echo "ECHO B";

\ echo "ECHO C";

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

No branches or pull requests

3 participants