mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.45k stars 292 forks source link

SQLITE_MISUSE on comments after command in the same line #1082

Open yilmazdurmaz opened 1 year ago

yilmazdurmaz commented 1 year ago

Describe the bug

I added some more queries to my running-fine file and suddenly SQLITE_MISUSE: not an error started to come out.

It took me some time to find the cause: trying to document the lines in-line and this happens.

I confirmed the behavior by selecting the lines only up to the comment and it runs fine.

To Reproduce Steps to reproduce the behavior:

  1. try running this line: SELECT * FROM some_table;
  2. try running this line: SELECT * FROM some_table; -- comment

Expected behavior Comments are natural part of queries. they should be just omitted when running, not cause issues like this.

Screenshots

SQLITE_MISUSE: not an error

Desktop (please complete the following information):

Additional context Add any other context about the problem here.